Skip to Content
avatar image
Former Member

upload photo using file upload

Gudday,

I want to upload image using the file upload UI element .Iam fetching the path of the image and attached it to the source of the image .

But this is not working.....This photo upload is done as a part of ESS developement where the user browses photo,uploads it into the database and reviews it in the iview.

File upload provides browsing facility.In the upload button i should include the code to save the image in the database and in review button the image should be seen in the iview...

Can anyone sugges how to proceed further...???

Thanks,

Deepthi.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Jul 04, 2008 at 04:45 AM

    Hi

    You can store the file on the application server using C13Z_RAWDATA_READ/WRITE function modules

    'SCMS_BINARY_TO_XSTRING' will be useful to convert binary to string.

    Abhi

    Add comment
    10|10000 characters needed characters exceeded

    • RAWSTRING is a native data type (and has been since 6.10). You can define your own domain or data elements as RAWSTRING or just do a direct type definition within the structure or table.

  • Sep 25, 2008 at 01:16 PM

    Hi Thomas ,

    Here, I've used the fileupload component to get the content of file just like the way you described. I've created my own ztable to store files. However i had trouble with the opposite process , converting xstring to a downloadable format and let the user have it without any corruption of file content.

    Do you have any suggestions ?

    Thanks.

    Add comment
    10|10000 characters needed characters exceeded

    • Hi Thomas,

      When i was looking at the examples (WDR_TEST_EVENTS) , i thought i should do conversion by mistake. And i've figured that i should give the MIME , FILENAME and XSTRING content to the filedownload component just like the same as i got. My problem is solved after you said ; "You shouldn't have to do any manipulation to it.". Thanks for your quick answer and sorry for my misunderstanding.