Picnik Forums
   Home   Help Search Login Register Picnik.com  
 
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
Pages: [1]
Print
Author Topic: Exactly what does Picnik post when exporting  (Read 2227 times)
jimmybeans
posted: September 23, 2009, 09:16:09 AM

Hi,

I'm trying to write a c# back-end to receive images from Picnik via the API. I have the following to post an image (import);

Code:
  <form id="form1" runat="server" action="http://www.picnik.com/service/" method="post" enctype="multipart/form-data">
    <div>

    <input type="hidden" name="_apikey" value="myKeyHere" />
<input type="hidden" name="_import" value="imagedata" />
<input type="hidden" name="_export" value="http://myURLHere/picnik.aspx" />
<input type="hidden" name="_host_name" value="idcdemo3" />
<input type="hidden" name="_export_agent" value="picnik.com" />
<input type="hidden" name="_export_field" value="POST" />

<input type="file" name="imagedata" />
<input type="submit" value="Import!" /> 
    </div>

I then have a script picnik.aspx which will accept the data posted to it by Picnik when exporting. However, I could not find anything in the API documentation detailing exactly what Picnik posts to the specified page.

Can anyone tell tell me / point me to a page in the documentation?

Thanks
bitnik official steve
(bitnik)

Reply #1 posted: December 14, 2009, 02:21:20 PM

Picnik sends the image data back to you using "multipart/form-data" encoding.  This will look just like somebody had filled in a web page form with the data you'd like.  The image data is stored in the field that you specify with the _export_field parameter.
Pages: [1]
Print
 
Jump to:  

Powered by SMF 1.1 RC2 | SMF © 2001-2005, Lewis Media | © 2006-7 Picnik, Inc.