svg2android icon indicating copy to clipboard operation
svg2android copied to clipboard

Link behind upload

Open saadx opened this issue 7 years ago • 2 comments

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

saadx avatar Mar 15 '17 13:03 saadx

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

yuraj11 avatar Mar 23 '17 14:03 yuraj11

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));

saadx avatar Mar 23 '17 20:03 saadx