on 09-09-2008 8:29 AM
Dear All,
I want to check the file extension and file size before uploading it through a file upload UI element in Web Dynpro 7.1.
How to go about it? And I am using following code for image upload. Is it correct one?
IWDResource photoData = wdContext.nodePhotos().getPhotosElementAt(i).getPhotoData();
FtpURLConnection myConnection = new FtpURLConnection(myUrl);
myConnection.connect();
OutputStream out = myConnection.getOutputStream();
int temp = 0;
InputStream text = photoData.read(false);
while((temp=text.read())!=-1)
out.write(temp);
out.flush();
out.close();
myConnection.close();
Kindly help.
Regards,
Amey Mogare
Did you check [this|https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/00062266-3aa9-2910-d485-f1088c3a4d71] one?
Bala
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.