Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Link behind upload #75

Open
saadx opened this issue Mar 15, 2017 · 2 comments
Open

Link behind upload #75

saadx opened this issue Mar 15, 2017 · 2 comments
Assignees
Labels

Comments

@saadx
Copy link

saadx commented Mar 15, 2017

I am developing a wpf app that would upload a svg file to your webpage and capture result, and then later format it as per my user needs and display in a window. For that i need the link behind upload that my app would upload the file to and i have been unable to find that link so far. There is another similar project for which i found the link but the main reason i want to use yours is because of the options you give at the bottom, like "bake transform into paths" which is very useful. It would be great if you could provide that link. Thanks

@yuraj11 yuraj11 self-assigned this Mar 23, 2017
@yuraj11
Copy link
Collaborator

yuraj11 commented Mar 23, 2017

Entire script is client side only - what should I do to make It work for you?

@saadx
Copy link
Author

saadx commented Mar 23, 2017

I want to be able to upload a svg file to your site and capture output. I am using the code below to do it with the other svg to vector converter i metioned earlier. But i havent been able to figure out how to do the same with your project.

     //This link is for the other project. This where where the file is uploaded when user drops a file on the drag and drop area
     String uriString = "http://193.124.64.166/api/svg2vd/v1";

    // Create a new WebClient instance.
    WebClient myWebClient = new WebClient();

    //Filepath contains the path of the .svg file on my local machine
    string fileName = FilePath;

    // Upload the file to the URI.
    var responseArray = myWebClient.UploadFile(uriString, "POST", fileName);

    // Decode and display the response.
    // ProcessData is my fucntion that formats the data returned by the WebClient
    string[] results = VectorDataProcess.ProcessData(System.Text.Encoding.ASCII.GetString(responseArray));

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants