Image upload in sap
HI all,
I have a requirement in which I have to upload a picture.
DATA: lr_mime_rep TYPE REF TO if_mr_api.
DATA: lv_filename TYPE string.
DATA: lv_path TYPE string.
DATA: lv_fullpath TYPE string.
DATA: lv_content TYPE xstring.
DATA: lv_length TYPE i.
DATA: lv_rc TYPE sy-subrc.
DATA: lt_file TYPE filetable.
DATA: ls_file LIKE LINE OF lt_file.
DATA: lt_data TYPE STANDARD TABLE OF x255.
PARAMETERS: p_path TYPE string
DEFAULT 'SAP/PUBLIC/Test.jpg'. "<<-- Mime path, save to path
cl_gui_frontend_services=>file_open_dialog(
CHANGING
file_table = lt_file " Table Holding Selected Files
rc = lv_rc ). " Return Code, Number of Files or -1 If Error Occurred
READ TABLE lt_file INTO ls_file INDEX 1.
IF sy-subrc = 0.
lv_filename = ls_file-filename.
ENDIF.
cl_gui_frontend_services=>gui_upload(
EXPORTING
filename = lv_filename " Name of file
filetype = 'BIN'
IMPORTING
filelength = lv_length " File length
CHANGING
data_tab = lt_data " Transfer table for file contents
EXCEPTIONS
OTHERS = 19 ).
CALL FUNCTION 'SCMS_BINARY_TO_XSTRING'
EXPORTING
input_length = lv_length
* first_line = 0
* last_line = 0
IMPORTING
buffer = lv_content
TABLES
binary_tab = lt_data
EXCEPTIONS
failed = 1
OTHERS = 2.
lr_mime_rep = cl_mime_repository_api=>if_mr_api~get_api( ).
s
This is done. But if I want to see where the image is stored then how I can do this?
Hi Yash Acharya,
Try this:
DATA: blob TYPE w3mimetabtype,
blob_size TYPE w3param-cont_len,
blob_type TYPE w3param-cont_type .
DATA:
p_color_scheme TYPE char20 ,
p_labels_groupid TYPE igs_label_tab,
p_labels_category TYPE igs_label_tab ,
p_data TYPE igs_data_tab,
p_charttype TYPE char20,
p_legend TYPE char20,
l_igs_chart TYPE REF TO cl_igs_chart ,
l_igs_chart_engine TYPE REF TO cl_igs_chart_engine,
i_igs_image_converter TYPE REF TO cl_igs_image_converter,
mime TYPE w3mimetabtype,
mimeline type W3MIME,
html TYPE w3htmltabtype,
html_line TYPE w3html,
l_msg_text(72) TYPE c,
l_url TYPE w3url,
l_content_length TYPE i,
l_content_type TYPE w3param-cont_type,
l_content_subtype TYPE w3param-cont_type.
CALL FUNCTION 'GUI_UPLOAD'
EXPORTING
filename = 'c:jpg'
filetype = 'BIN'
IMPORTING
filelength = l_content_length
* HEADER =
TABLES
data_tab = mime
EXCEPTIONS
file_open_error = 1
file_read_error = 2
no_batch = 3
gui_refuse_filetransfer = 4
invalid_type = 5
no_authority = 6
unknown_error = 7
bad_data_format = 8
header_not_allowed = 9
separator_not_allowed = 10
header_too_long = 11
unknown_dp_error = 12
access_denied = 13
dp_out_of_memory = 14
disk_full = 15
dp_timeout = 16
OTHERS = 17
IF sy-subrc EQ 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
* WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
CREATE OBJECT i_igs_image_converter .
i_igs_image_converter->input = 'image/jpeg'. "jpg
i_igs_image_converter->output = 'image/x-ms-bmp'.
data: length type i,
total type i.
CALL METHOD i_igs_image_converter->set_image
EXPORTING
blob = mime
blob_size = l_content_length.
CALL METHOD i_igs_image_converter->execute
EXCEPTIONS
communication_error = 1
internal_error = 2
external_error = 3
OTHERS = 4.
IF sy-subrc = 0.
CALL METHOD i_igs_image_converter->get_image
IMPORTING
blob = blob
blob_size = blob_size
blob_type = blob_type.
CALL FUNCTION 'WS_DOWNLOAD'
EXPORTING
* bin_filesize =
filename = 'c:bmp'
filetype = 'BIN'
TABLES
data_tab = blob.
ELSE.
DATA: num TYPE i, message TYPE string.
CALL METHOD i_igs_image_converter->get_error
IMPORTING
number = num
MESSAGE = message.
ENDIF.
Similar Messages
-
Thumbnail creation during Image Upload
In my application, I am able to upload documents to content server using KPRO API's. Image upload works fine and I can display the same file in webdynpro image UI element. Now while uploading the image, i also need to create a thumbnail image and store it. I can use these thumbnail images for image navigation instead of actual file due to performance issues.
How to create thumbnail images from jpeg image file?
Edited by: ashwinsrinivas on Jul 20, 2010 8:41 PMI'm trying to put the results of my tinkering into a blog - which should hopefully get published in the next few days.
But just to update you here first
Yes it can be done! - here's the proof:
[Large image about to be resize to a thumbnail|https://weblogs.sdn.sap.com/weblogs/images/251723740/large_double_rainbow.jpg]
[Image after resizing|https://weblogs.sdn.sap.com/weblogs/images/251723740/resized_rainbow.jpg]
Thought I'd go with some double rainbows to be topical (plus I can't get the darn song out of my head!)
I created a new method in Thomas' class: TRANSFORM_RESIZE with 2 input parameters of type i, new_width and new_height.
Then most of the code is pretty similar to the rotation code that Thomas had already written...
data l_data type xstring.
data l_new_data type xstring.
data l_row type xstring.
data l_new_row type xstring.
data l_num_pixels type i.
data l_counter type i.
data l_counter2 type i.
data l_len type i.
data l_pad type i.
data l_mod type i.
data l_width type i.
data l_bytes_per_pixel type i.
data: l_y_factor type f,
l_x_factor type f.
data l_new_pad type i.
data l_null(1) type x.
* get the data from the image representation
l_data = gx_content+data_offset.
l_bytes_per_pixel = bpp / 8.
l_width = width * l_bytes_per_pixel.
l_y_factor = height / new_height.
l_x_factor = width / new_width.
l_mod = l_width mod 4.
l_pad = 4 - l_mod.
if l_pad = 4.
l_pad = 0.
endif.
l_len = xstrlen( l_data ).
data lt_rows type standard table of xstring.
data: l_row_index type i.
field-symbols <wa_row> like line of lt_rows.
do new_height times.
l_row_index = floor( ( sy-index - 1 ) * l_y_factor ).
l_counter = l_row_index * ( l_width + l_pad ).
append initial line to lt_rows assigning <wa_row>.
<wa_row> = l_data+l_counter(l_width).
enddo.
l_mod = ( new_width * l_bytes_per_pixel ) mod 4.
l_new_pad = 4 - l_mod.
if l_new_pad = 4.
l_new_pad = 0.
endif.
loop at lt_rows assigning <wa_row>.
clear l_new_row.
do new_width times.
l_counter2 = l_bytes_per_pixel * floor( ( sy-index - 1 ) * l_x_factor ).
concatenate l_new_row <wa_row>+l_counter2(l_bytes_per_pixel) into l_new_row in byte mode.
enddo.
if l_new_pad > 0.
do l_new_pad times.
concatenate l_new_row l_null into l_new_row in byte mode.
enddo.
endif.
concatenate l_new_data l_new_row into l_new_data in byte mode.
endloop.
data x_new_image type xstring.
concatenate gx_content(data_offset) l_new_data into x_new_image in byte mode.
data x_header type xstring.
x_header = gx_content+0(data_offset).
data x_size(4) type x.
data i_size type i.
i_size = xstrlen( x_new_image ).
write4 i_size x_size.
concatenate x_header+0(2) x_size x_header+6 into x_header in byte mode.
data x_data_size(4) type x.
data i_data_size type i.
i_data_size = xstrlen( l_new_data ).
write4 i_data_size x_data_size.
concatenate x_header+0(34) x_data_size x_header+38 into x_header in byte mode.
data x_width(4) type x.
data x_height(4) type x.
data i_width type i.
data i_height type i.
i_width = new_width.
i_height = new_height.
write4 i_width x_width.
write4 i_height x_height.
concatenate x_header+0(18) x_width x_height x_header+26 into x_header in byte mode.
data x_hres(4) type x.
data x_vres(4) type x.
x_hres = x_header+38(4).
x_vres = x_header+42(4).
concatenate x_header+0(38) x_vres x_hres x_header+46 into x_header in byte mode.
concatenate x_header l_new_data into x_new_image in byte mode.
gx_content = x_new_image.
me->read_bitmap_header( ). -
Propagate Image Upload Across Portal Servers
Hi,
I'm trying to investigate the best way of propagating image uploads across portal landscape.
We have a requirement where Partner's are able to upload their company logo, to be displayed in the masthead.
I've managed to create an iview to upload and validate the image, but I need to find a mechanism to copy the image file to all portal servers.
I have found other posts which recommend mapping a drive, but I don't want a single point of failure, also for performance reasons I don't really want to store images in database.
Is there a mechanism to deploy to all servers?
Thanks
Jason.If you can make use of the Knowledge Management System to store your image, then you can set up Content Exchance using the ice_service to move images to different systems.
Check out this link
http://help.sap.com/saphelp_erp2005/helpdata/en/35/4cf72bfe18455e892fc53345f4f919/frameset.htm -
Js-error while executing Multiple Image Upload wizard
If i want to save the configured window of Multiple Image Upload with Save to Database wizard i get this js-error: "While executing onClick in MIUploadWSaveWizard.htm, a JavaScript error occured".
can someone help?
thanx
peterThat again would be more of a question for the Cold Fusion group.
Try http://forums.adobe.com/community/coldfusion/coldfusion_administration
Those people will be able to help you out more.
Brad Lawryk
Adobe Community Expert, Dreamweaver
Adobe Usergroup Manager, Northern British Columbia Adobe User Group -
I need the Log Report for the Data which i am uploading from SAP R/3.
Hi All,
I am BI 7.0 Platform with Support Patch 20.
I need the Log Report for the Data which i am uploading from SAP R/3.
I extract the DATA from R/3 into BI 7.0 DSO where I am mapping the GL Accounts with the FS Item. In the Transformation i have return a routine on the FS Item InfObject . I am checking the Gl code into Z table for the FS Item .
I capture the FS item from the Z table then update this FS item to Infobject FS item.
Now i need to stop the Data upload if i do not find the GL code in the Z table, and generate report for all GL code for which the FS item is not maintained in the Z table.
Please suggest.
Regards
nileshHi.
Add a field that you will use to identify if the GL account of the record was found in the Z table or not. Fx, create ZFOUND with length 1 and no text.
In your routine, when you do the lookup, populate ZFOUND with X when you found a match (sy-subrc = 0) and leave it blank if you don't find a match. Now create a report filtering on ZFOUND = <blank> and output the GL accounts. Those will be the ones not existing in the Z table, but coming in from your transactions.
Regards
Jacob -
How do I add image upload to web app edit template?
How do I add image upload to web app edit template. When creating fields I am selecting image from the field type. But the only way to upload and image is when I create the web app item within the admin. The option to upload an image is not available when the user submit web form opens.
Wont send any of these questions through this email anymore but really needed assistance.
Thanks,
GordonOn the Details tab of the Web App setup, under Web App Item Options; have you ticked "Allow File Upload" and specified a Default Upload Folder?
-
Multiple Image Uploading Question
Please forgive my ignorance here but I saw the question on multiple image uploading and this is something i have been trying to do for a few days now without any success.
I am using CS3 with ADDT and PHP
I want to allow my users to be able to upload say 5 pictures at a time, each user has multiple photo albums the names of which are stored in mysql table, the image name is stored in a different table with a reference to the album id.
So, I assume that i put an insert record on the page, I followed the usual process used to have a single image upload and thought it would give me or add the extra file field options on the form when telling the multi upload to allow 5 images to be uploaded, not the case. Do i have to create a form on the page first with 5 file fields or am i just missing the plot here.
Sorry if this is just something that seems simple but i just don't seem to be able to get it to work at all. I have no working example to look over and have serach google to see if there are any tutorials for doing this but can't find any at all.
Thank you in advance of any help and guidance given
Regards
RayHi Günter
Thank you for your reply and also for the great tutorial site you run which has helped me quite a lot with several things.
ok, so i am maybe a little confused here, so what is the multiple image uploader for if not for uploading multiple images, and how does it give you the option to select more than one file or is it that you can't use it when inserting the image file into a database?
Please forgive my ignornace again, i can see when i have tried using the multiple image upload thatit puts a text link called upload, what is that for because it doesn't seem to do anything on the page i have tried it on?
Kind Regards
Ray -
Image upload/retrieve turorial not working
The tutorial regarding image upload retrieval in the following link is not working:
http://developers.sun.com/prodtech/javatools/jscreator/reference/tips/2/retrieve_binary_data.html
I get the following error:
Java.sql.SQLException: Error in allocating a connection. Cause: Connection could not be allocated because: java.security.PrivilegedActionException : Error opening socket to server localhost on port 21527 with message : null
ThanksHi Sakthi,
Finally I managed to make it work with the following modifications:
(1) In the servlet jdbc/Order> jdbc/Travel
(2) The datasource names for the rowsets in the session as Travel (instead of Order)
Another observation I made is: If you bind the url of the image component (which is on the datatable column) to a (for example applicationbean) property which retruns the necessary url, it is very convinent to handle the datatable layout visually. (Otherwise if you go to the datatable layout it shows some error message popup)
Thanks. -
Can you move a 'Multiple Image Upload' button into the 'Update Form'?
I am able to creat and an Update form and an image upload using the "Update Form Wizard" tool and the "Multiple Image Upload" tool succesfully.
<br />
<br />The problem comes when I try to move the "UPLOAD" button inside the Update form. Right now it looks like this:
<br />http://www.webritesolutions.com/Test/upload/now.JPG
<br />
<br />This is how I would like it to show:
<br />http://www.webritesolutions.com/Test/upload/tryingto.JPG
<br />
<br />I want to "Upload" button to go next to the "Update record" button. When I do this I get a javascript error and the "Update record" button is disabled.
<br />Here is the code of what I tried to do:
<br />
<br />
<br />
<br />
<br />
<table>
<tr class="KT_buttons">
<td>
<?php<br /> // Multiple Upload Helper<br /> echo $muploadHelper->Execute();<br /> ?>
</td>
<td colspan="1">
<input type="submit" name="KT_Update1" id="KT_Update1" value="Update record" />
<br /></td>
</tr>
</table>
<br />
<br />Here is the Javascript error:
<br />http://www.webritesolutions.com/Test/upload/error.JPG
<br />
<br />thanks for your help.A control can only appear once in the visual tree. So you have to remove it from the Grid before you can add it to the DockPanel.
This code will move the Border element from the Grid to the DockPanel when you click the button:
Private Sub Button_Click(sender As Object, e As RoutedEventArgs)
Dim border = CType(LayoutRoot.FindName("myborder"), Border)
LayoutRoot.Children.Remove(border)
contain.Children.Add(border)
End Sub
<StackPanel>
<Grid x:Name="LayoutRoot">
<Border x:Name="myborder" BorderBrush="Black" BorderThickness="2">
<TextBlock>...</TextBlock>
</Border>
</Grid>
<DockPanel x:Name="contain" Background="Yellow">
<TextBlock>2</TextBlock>
</DockPanel>
<Button Click="Button_Click" Content="Move"/>
</StackPanel>
You can try it for yourself. But please post your code as formatted text and not as embedded images if you want anyone to be able to reproduce your issue and help you in the future.
Please remember to close your threads by marking helpful posts as answer. -
ADDT multiple image upload: "error 500"
Right now, I have managed to get the update record form wizard working, the right input ends up in the correct fields in the database.
So I'm left fighting with the "multiple image upload", which gives me an "error 500" message (error connecting to server)
The window does show me the correct files in the correct folder, but when I try and upload an image I always get the error 500 message.
I have read that the "multiple file upload" uses a temporary folder, and Im assuming that the "multiple image upload" does the same, and I suppose that I should CHMOD that folder to 777.
Do you know where I can find that folder?
Can anyone help me with that error?
Please?
Sorry about my name, I tried a lot of other names, and all were taken, but this random name went just fineI thought it did - When I used the upload and save to database it saved the original images in a folder and created a sub folder called "thumbnails" and saved the thumbnails - origianl filesname just with width and height appended at the end.
I checked my server files and their definately created.
I browsed the java script and the help files which mentions it does this but I would like to be able to change the naming format of the thumbanils if possible -
Multiple image upload CRASH!!! but works with simple image upload
I'm getting MAD.
I'm using php and GD
While the simple image and re size works like a charm, the multiple image upload or the multiple file upload have a strange behavior.
It opens the pop-up with flash, then eventually shows me files or thumbnails but when I try to up load I just wait and get the typical "system becoming unstable" flash error.
As I can see the directory is always generated (I've tried also to put a static directory) but after stargin the upload the flash uploader just crashes and no result.
Any help would be really appreciatedHi Fonzie,
as the folder is getting created, the issue you´re having is not related to wrong folder permission - it´s something else...
As I wrote before, che common upload and resize function works perfectly
this one works perfectly, because it´s just one file to upload and to process, wheras doing that with multiple files might collide with some settings on your server
So for sure it's not a simple issue as the max filesize
Are you sure ? Did you check the current "max_upload_filesize" setting ? As long you don´t check it, you can´t know :-)
As a general rule of thumb, it´s important to be aware of the fact that uploading & resizing images on the server might collide with several PHP settings -- and the more images you upload and resize in one swoop, the closer you´re getting to these limits respectively might even be exceeding them. The following "directives" are those which have an effect on whether your image/file upload & processing will work or not:
- "max_upload_filesize" :: is sometimes set to just 8 MB on a shared hosting, sometimes 16 MB, sometimes more. This setting will affect the file upload procedure only
- "set_time_limit" (e.g. 30 seconds) :: if the execution time of a script exceeds this limit for whatever reason, the server simply shuts it down without letting you (respectively the flash uploader) know it´s been shut down. This *might* be the reason why ADDT´s flash uploader hangs respectively returns that error message after some time, because it´s waiting for some response from the server which never comes.
- "memory_limit" (e.g. 8 MB) :: this directive is a sort of "allocated server RAM" for your account, and it´s in particular the image resizing process which will grab more or less memory resources -- the higher the the resizing factor is, the more RAM is spent, and the more images are getting resized in one swoop, the worser it gets.
However, all these PHP directives can be changed, and your host might even be so courteous to increase the currently defined values of those abovementioned directives for you -- and that´s what I´m suggesting at this point.
Cheers
Günter Schenk
Adobe Community Expert, Dreamweaver -
Excel Format File Upload in SAP APO 4.0
I have an file on desktop with .xls format. This file I need to upload in SAP ztable in APO .... kindly suggest the various techinques availabe for this....
kindly find the attached code for the same which I have written..... request you to suggest on this...
This APO is not supporting following Function module
1. KCD_EXCEL_OLE_TO_INT_CONVERT
2. ALSM_EXCEL_TO_INTERNAL_TABLE
I am attaching the code...
EPORT ZTEST_EXCEL NO STANDARD PAGE HEADING MESSAGE-ID zsn.
DATA: Begin of i_temp occurs 0,
Z_LOCATION like ztest_tran-z_location,
z_product like ztest_tran-z_location,
Z_0_30_DAYS like ztest_tran-Z_0_30_DAYS,
Z_31_59_DAYS like ztest_tran-Z_31_59_DAYS,
Z_OVER_59_DAYS like ztest_tran-Z_OVER_59_DAYS,
End of i_temp.
data : i_temp1 like i_temp OCCURS 0 WITH HEADER LINE.
DATA : begin of itab_file occurs 0,
line(255) type c,
end of itab_file.
DATA: v_file type string.
selection-screen begin of block b1.
parameters: fl_file like rlgrap-filename lower case.
selection-screen end of block b1.
v_file = fl_file.
CALL FUNCTION 'GUI_UPLOAD'
EXPORTING
FILENAME = V_FILE
FILETYPE = 'ASC'
HAS_FIELD_SEPARATOR = ' '
HEADER_LENGTH = 0
READ_BY_LINE = 'X'
DAT_MODE = ' '
CODEPAGE = ' '
IGNORE_CERR = ABAP_TRUE
REPLACEMENT = '#'
CHECK_BOM = ' '
IMPORTING
FILELENGTH =
HEADER =
TABLES
DATA_TAB = I_TEMP
EXCEPTIONS
FILE_OPEN_ERROR = 1
FILE_READ_ERROR = 2
NO_BATCH = 3
GUI_REFUSE_FILETRANSFER = 4
INVALID_TYPE = 5
NO_AUTHORITY = 6
UNKNOWN_ERROR = 7
BAD_DATA_FORMAT = 8
HEADER_NOT_ALLOWED = 9
SEPARATOR_NOT_ALLOWED = 10
HEADER_TOO_LONG = 11
UNKNOWN_DP_ERROR = 12
ACCESS_DENIED = 13
DP_OUT_OF_MEMORY = 14
DISK_FULL = 15
DP_TIMEOUT = 16
OTHERS = 17
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF...........
-
Multiple Image Upload Wizard Not Creating A Form
I'm working on a new site and I keep running the multiple image upload wizard.
It connects to the database fine, gets the primary key and all that. It sees the two columns that should be included in the form field in addition to the image_url field.
When I hit finish on the wizard all the proper code seems to be created except the form. The upload button is the only user interface element created.
Anybody got ideas on what is causing this? I've used this wizard on other projects sucessfuly, but I can't figure out what I'm doing differently here.
thanks,
- TannerI believe you have to create the form first with some File Upload fields then run the Wizard.
Cheryl -
Problem in Image uploading through a view -- URGENT
Hii Experts,
I am facing very strange problem while uploading a image file (.JPG file) thru a web dynpro view.
I am accepting a image file from view and uploading it to a ftp server.
There are two abnormal results I have observed. It does NOT happen for every image upload. But it has been observed to happen during peak Internet hrs. (image size can range from 1MB to 7-8 MBs)
When 'Upload' button is clicked, one of the following thing happens:-
1. After taking loooong time (processing circle rotates), browser screen goes totally blank. That is, browser goes into state as if no page is opened (white screen)
2. After taking loooong time, empty form re-appears. ( ie the view in which i had submitted data and pressed 'Upload')
I have tried tracing errors in default trace. but no error or exception is displayed !!!
Following is the code i'm using for uploading file. ==>
try {
URL myUrl = new URL("ftp://<some address>");
FtpURLConnection myConnection = new FtpURLConnection(myUrl);
myConnection.connect();
OutputStream out = myConnection.getOutputStream();
out.write(wdContext.currentPhotosElement().getPhoto1());
out.close();
myConnection.close();
} catch (Exception e) {
System.err.println("\n\n$$$$$$$$$$$$$Exception in image upload $$$$$$$$$$$$$\n\n");
e.printStackTrace();
Please help me as this system is live and lot of users are complaining as they are not able to upload their images..
Awaiting for reply ..
regards,
Amey
Edited by: Amey Mogare on May 28, 2008 2:14 PM
Edited by: Amey Mogare on May 28, 2008 2:17 PMIn SE78 when we click on the graphics and then click on the BMAP ( Bitmap Images ) then the bdc is not cathcing the screen and its giving an error
This is the error message which i am recieving in it .
00 343 S Cursor field RSTXT-TDNAME . does not exist in the screen
Please suggest me that is there any way for the same or else is there any BAPI for the same .
Regards
Shankar -
Image Upload probelm - Very Urgent. Pls help!!!
Hi All,
I am facing very strange problem while uploading a image file (.JPG file) thru a web dynpro view.
I am accepting a image file from view and uploading it to a ftp server.
There are two abnormal results I have observed. It does NOT happen for every image upload. But it has been observed to happen during peak Internet hrs. (image size can range from 1MB to 7-8 MBs)
When 'Upload' button is clicked, one of the following thing happens:-
1. After taking loooong time (processing circle rotates), browser screen goes totally blank. That is, browser goes into state as if no page is opened (white screen)
2. After taking loooong time, empty form re-appears. ( ie the view in which i had submitted data and pressed 'Upload')
I have tried tracing errors in default trace. but no error or exception is displayed !!!
Following is the code i'm using for uploading file. ==>
try {
URL myUrl = new URL("ftp://<some address>");
FtpURLConnection myConnection = new FtpURLConnection(myUrl);
myConnection.connect();
OutputStream out = myConnection.getOutputStream();
out.write(wdContext.currentPhotosElement().getPhoto1());
out.close();
myConnection.close();
} catch (Exception e) {
System.err.println("\n\n$$$$$$$$$$$$$Exception in image upload $$$$$$$$$$$$$\n\n");
e.printStackTrace();
Please help me as this system is live and lot of users are complaining as they are not able to upload their images..
Awaiting for reply ..
regards,
AmeyHi,
Does anybody have any idea about how the file data (byte stream) flows from Client's machine browser to Web Dynpro's context's element??
As per my observation and tracing, it is first loading byte array frm client's machine to view's corresponding context node.. And then only it is proceeding with further actions.
Now in my case, user may upload files ranging frm size 6MB to 10MB, web dynpro application either refreshes or times out during this transfer. I didnt even started FTP process to upload byte[] to remote server !!!
So how can we increase this speed of transfer from client's machine to context element ??
regards,
Amey
Maybe you are looking for
-
I downloaded Adobe Cloud setup but it wont open up anything
SO I got myself a new PC lenova laptop and downloaded Cloud. It worked out well and was able to get photoshop (trial), but something happened to my laptop that forced me to system restore. I redownloaded and get Adobe Cloud setup, but when I double c
-
Merge Options; Separating Document Pages; Automatic Emails...
This is a general question about Pages and its Mail Merge feature. It makes a plea for better documentation or updated features. I want to make Pages my main document processor. But I also need to be able to send e-mails, with one-page attachments sp
-
Lost microphone icon on keyboard
I've suddenly lost microphone icon on keyboard.
-
I am having trouble importing files to LR 5.6.
As usual, I plug the camera in [Nikon D810] and the photos automatically import. The following day, LR says there are no photos to load. Also Preview Unavailable comes up! What's up LR???
-
Oops. Accidentally posted this in the wrong category. Now, I hope it is in the right one... When I was on OS X 10.3.x server, I was able to mirror my 2 250g HDs and partition the RAID master. It seems I am unable to do that with 10.4.3. I can partiti