on 10-10-2011 8:18 AM
Hi All,
I done an application which consists of uploading and downloading an image. uploding is working properly but download is not working. can u please help me.
Thanks,
jyothi.
Are you using the IWDFileDownload UI element?
What problem do you run into?
Robin
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Uploaded image stored in the context with name picture "mydata.picture" this is binded to upload UI element.
ImgSource is the context element which is bound to picture.
public java.lang.String getMyDataImgSource(IPrivateDisplayMyData.IMyDataElement element)
{
//@@begin getMyDataImgSource(IPrivateDisplayMyData.IMyDataElement)
if(wdContext.currentImageElement().getDefault() == true)
{
return wdContext.currentMyDataElement().getAttributeAsText("PictureName");
}
else
{
return "images.jpg";
}
//@@end
}
Thanks,
Jyothi.
Hi,
Are you able to view the image uploaded ? Are you converting the image into bye array ?
Pls check this [link|http://wiki.sdn.sap.com/wiki/display/WDJava/BlobinWD] to store and retrieve images as BLOB images from Database..
Regards,
Vijay.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Are you able to view the image uploaded ? Are you converting the image into bye array ?
Pls check this [link|http://wiki.sdn.sap.com/wiki/display/WDJava/BlobinWD] to store and retrieve images as BLOB images from Database..
Regards,
Vijay.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Jyothi,
Where are you uploading the image to ? (Some Oracle database / KM etc.. )
The link I shared earlier is having Oracle as database.
The link [Getting an image from KM Document to be used in Web DynPro|http://wiki.sdn.sap.com/wiki/display/KMC/GettinganimagefromKMDocumenttobeusedinWeb+DynPro] is when the image is stored in KM.
Also see this [Link|/thread/197461 [original link is broken]; which uses API to write and read the images.
Let me know where you are storing the image.
Regards,
Vijay.
Hi,
Are you able to view the image uploaded ? Are you converting the image into bye array ?
Pls check this [link|http://wiki.sdn.sap.com/wiki/display/WDJava/BlobinWD] to store and retrieve images as BLOB images from Database..
Regards,
Vijay.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
can you share the code?
where you store the img?
how you access?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Uploaded image stored in the context with name picture "mydata.picture" this is binded to upload UI element.
ImgSource is the context element which is bound to picture.
public java.lang.String getMyDataImgSource(IPrivateDisplayMyData.IMyDataElement element)
{
//@@begin getMyDataImgSource(IPrivateDisplayMyData.IMyDataElement)
if(wdContext.currentImageElement().getDefault() == true)
{
return wdContext.currentMyDataElement().getAttributeAsText("PictureName");
}
else
{
return "images.jpg";
}
//@@end
}
Thanks,
Jyothi.
User | Count |
---|---|
90 | |
10 | |
10 | |
10 | |
7 | |
7 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.