Image Uploading - WeOnlyDo Discussion board

Image Uploading (wodHttpDLX)

by Shakeeb Ahmed, Thursday, September 27, 2007, 20:19 (6268 days ago)

Hi

I want to post an image data means I want to upload image to my profile using my desktop app. So i have to post image data to. How could I achieve this task.

Re: Image Uploading

by wodDamir, Thursday, September 27, 2007, 20:30 (6268 days ago) @ Shakeeb Ahmed

Hi Shakeeb,

Did you try out the samples which came with the component?

You said you want to upload it to your profile. I assume this is about some forum or similiar cause which has a Form that requires you to provide some data (and image).

In that case you can use the Request.FormUpload.AddFile method to send the file along with other FormUpload data. Just make sure you issue Post Method after you added everything to the request.

You should also check the sample 5. Upload file to the server located in VB -> Component folder.

Regards,
Damba

Re: Image Uploading

by Shakeeb Ahmed, Friday, October 12, 2007, 08:09 (6253 days ago) @ wodDamir

I want to post some data with file uploading

I want post data stream as

[image]

and request Header stream as

Content-Type: multipart/form-data; boundary=---------------------------130732728322203
Content-Length: 56974

-----------------------------130732728322203
Content-Disposition: form-data; name= __VIEWSTATE


-----------------------------130732728322203
Content-Disposition: form-data; name= ImageToUpload ; filename= loaderio1.jpg
Content-Type: image/jpeg
-----------------------------130732728322203
Content-Disposition: form-data; name= Entity

EntityID=0;EntityType=User
-----------------------------130732728322203
Content-Disposition: form-data; name= UploadID

509178364
-----------------------------130732728322203
Content-Disposition: form-data; name= ViewImagesURL

http://xxxxxxx.xxxxxx.coxxxxm/index.cfm?fuseaction=xxxxx.xxxxx
-----------------------------130732728322203
Content-Disposition: form-data; name= albums

rdCurrentAlbum
-----------------------------130732728322203
Content-Disposition: form-data; name= AlbumDropdown

671415
-----------------------------130732728322203
Content-Disposition: form-data; name= txtNewAlbumName


-----------------------------130732728322203
Content-Disposition: form-data; name= ButtonUpload

Upload
-----------------------------130732728322203—
[img]http://[/img] [img]http://[/img] [url=http://]Name[/url] [img]http://[/img] [img]http://[/img] [img]http://[/img] [img]http://[/img] [img]http://[/img] [img]http://[/img] [img]http://[/img] [img]http://[/img] [img]http://[/img] [img]http://[/img] [img]http://[/img]

Re: Image Uploading

by Shakeeb Ahmed, Friday, October 12, 2007, 08:13 (6253 days ago) @ Shakeeb Ahmed

I want to post some data with file uploading

I want post data stream as

[image]

and request Header stream as

Content-Type: multipart/form-data; boundary=---------------------------130732728322203
Content-Length: 56974

-----------------------------130732728322203
Content-Disposition: form-data; name= __VIEWSTATE


-----------------------------130732728322203
Content-Disposition: form-data; name= ImageToUpload ; filename= loaderio1.jpg
Content-Type: image/jpeg
-----------------------------130732728322203
Content-Disposition: form-data; name= Entity

EntityID=0;EntityType=User
-----------------------------130732728322203
Content-Disposition: form-data; name= UploadID

509178364
-----------------------------130732728322203
Content-Disposition: form-data; name= ViewImagesURL

http://xxxxxxx.xxxxxx.coxxxxm/index.cfm?fuseaction=xxxxx.xxxxx
-----------------------------130732728322203
Content-Disposition: form-data; name= albums

rdCurrentAlbum
-----------------------------130732728322203
Content-Disposition: form-data; name= AlbumDropdown

671415
-----------------------------130732728322203
Content-Disposition: form-data; name= txtNewAlbumName


-----------------------------130732728322203
Content-Disposition: form-data; name= ButtonUpload

Upload
-----------------------------130732728322203—

Re: Image Uploading

by wodDamir, Friday, October 12, 2007, 09:32 (6253 days ago) @ Shakeeb Ahmed

Shakeeb,

In order to Upload a File along with some data, you can use our FormUpload.Add and FormUpload.AddFile methods. You can also find a sample on how to use them in the samples directory.

Can you try it please?

When you use those methods, wodHttpDLX will automatically set Headers needed to be used in order to be able to do a successful Post.

Regards,
Damba

Re: Image Uploading

by Shakeeb Ahmed, Sunday, October 14, 2007, 00:08 (6251 days ago) @ wodDamir

I did this but it is useless not posting.
plz check the image and header data is edn and then recommend

How can i get the boundary separator from your function

Shakeeb,

In order to Upload a File along with some data, you can use our FormUpload.Add and FormUpload.AddFile methods. You can also find a sample on how to use them in the samples directory.

Can you try it please?

When you use those methods, wodHttpDLX will automatically set Headers needed to be used in order to be able to do a successful Post.

Regards,
Damba

Re: Image Uploading

by wodDamir, Sunday, October 14, 2007, 14:33 (6251 days ago) @ Shakeeb Ahmed

Shakeeb,

Can you contact us on techsupport@weonlydo.com and send us a sample application which we could run in order to duplicate the issue?

Also, please give us as much information on what you are trying to accomplish and where it is failing so we could be moer helpful.

Regards,
Damba

Re: Image Uploading

by Shakeeb Ahmed, Monday, October 15, 2007, 10:35 (6250 days ago) @ wodDamir

I am developing an app for uploading images on MySpace(www.myspace.com) account.
Can you tell me how..

Shakeeb,

Can you contact us on techsupport@weonlydo.com and send us a sample application which we could run in order to duplicate the issue?

Also, please give us as much information on what you are trying to accomplish and where it is failing so we could be moer helpful.

Regards,
Damba

Re: Image Uploading

by woddrazen, Monday, October 15, 2007, 11:23 (6250 days ago) @ Shakeeb Ahmed

Ahmed,


Can you please zip and send us your sample to techsupport@weonlydo.com and we will try to find out what went wrong.


Drazen

Re: Image Uploading

by Shakeeb Ahmed, Wednesday, October 17, 2007, 22:20 (6247 days ago) @ woddrazen

I have mailed you the source code Its urgent plz.

Ahmed,


Can you please zip and send us your sample to techsupport@weonlydo.com and we will try to find out what went wrong.


Drazen

Re: Image Uploading

by Shakeeb Ahmed, Saturday, October 20, 2007, 17:30 (6245 days ago) @ Shakeeb Ahmed

Hi
there is no reply from your team. I am suffering too much plz.....

I have mailed you the source code Its urgent plz.

Ahmed,


Can you please zip and send us your sample to techsupport@weonlydo.com and we will try to find out what went wrong.


Drazen

Re: Image Uploading

by wodSupport, Saturday, October 20, 2007, 18:35 (6245 days ago) @ Shakeeb Ahmed

Shakeeb,

I think we replied. We cannot solve your whole project. We can help with wodHttpDLX and can help with HTTP protocol, but cannot solve project instead of youthat involves several requests, parsing the result, etc.. This requires several days of coding - and this sounds like real job, not the techsupport anymore.

If you have exact question about wodHttpDLX misbehavior we will be happy to answer. But please don't ask us to make whole application for you.

Kind regards,
Kreso