Need to Upload the image into XMII server from a desktop
Hi,
Can anyone let me know how to upload the image from my laptop on to the server which i should be using in my pages. I tried using Image Loader and Image Saver. But it lead me no where. Is there a detailed documentation for this ?
Thanks for your help in Advance.
Regards,
Deepthi lakshmi.A.
Hi Deepti,
Could you give some details on what you are trying to achieve.
Is this a use case scenario where images need to be uploaded by a handful of people using some web UI?
or
Is this a use case scenario where you wish to upload images from the harddrive of absolutely any user?
The reason for my questions is as follows.
If you wish to allow some high-level (technically savvy) users the ability to upload images to be shown in dynamic content for remainder of the public, you could, in theory, set up a network directory that xMII is able to see. These High-Level users could drop their images in the folder and specify the path in a text box.
You could go one step further and use Get Folder List action from within an Xacute transaction and display the list of images in this folder on a web UI. Users could pick the image from the list and "Bob's your Uncle!".
Hope this helps,
Cheers,
Jai.
Similar Messages
-
Do I need to upload the player to my server?
I'm sorry if this is an obvious question. I created a video with Captivate and now I want to upload it to a website, do I need to upload a flash player or any other file besides the video, html and js file.
No you do not need to upload the flash player to the website. If the browser where this video will be viewed does not have the flash player plugin the user will be prompted to download the plugin from Adobe's site.
Manish
http://blogs.adobe.com/captivate -
Question about image preview in client side before upload the image file to server
Hi everyone:
My project has an image upload function. Currently it only display a fileupload component, after user press OK, the file will upload to server, but there's no preview before user press OK.
I want it can show the preview, I know that I can upload the file to a temporary directory on server then show that image to client, but in this way will cause strain on server. Is there any other ways to preview the image? Like using JavaScript? Thankyou.Stuck with BMP
-
Lenovo Vibe X( S960) hangs on while uploading the images into Whatsapp.
Hi ,
I purchased the Vibe x(S960) 3 days back and when I try to upload photos in the Whatapp, mobile hangs and not even able to come out of that problem. Needs to wait until battery gets dry. ( some time I have wait for more than 3 hours to battery gets dry).. please have a look into this ASAP and let me know if you have any fix for the problem.
If no fix is exist. please provide me the some temprory fix atleast.please remember that this is a peer to peer forum, provided by Lenovo in order that members may seek assistance from others and share their experiences, not a dedicated support site. There is a Leonovo presence here but unfortunately there is no guarantee you will receive a direct response.
Regards
Andy ______________________________________
Please remember to come back and mark the post that you feel solved your question as the solution, it earns the member + points
Did you find a post helpfull? You can thank the member by clicking on the star to the left awarding them Kudos Please add your type, model number and OS to your signature, it helps to help you. Forum Search Option T430 2347-G7U W8 x64, Yoga 10 HD+, Tablet 1838-2BG, T61p 6460-67G W7 x64, T43p 2668-G2G XP, T23 2647-9LG XP, plus a few more. FYI Unsolicited Personal Messages will be ignored.
Deutsche Community Comunidad en Español English Community Русскоязычное Сообщество
PepperonI blog -
Need Sample code to upload the data to Application Server
Hi ,
I need to upload the data to application server.
The output should be an XML file.
Can anybody send me sample code for this.
Reward points are assured.
Best Regards
Bhagat.may be this code wil help ,first to downjload the XML fine -
1)
REPORT zhr_test2_tk.
TYPE-POOLS: ixml.
TYPES: BEGIN OF xml_line,
data(256) TYPE x,
END OF xml_line.
DATA: l_ixml TYPE REF TO if_ixml,
l_streamfactory TYPE REF TO if_ixml_stream_factory,
l_ostream TYPE REF TO if_ixml_ostream,
l_renderer TYPE REF TO if_ixml_renderer,
l_document TYPE REF TO if_ixml_document.
DATA: l_element_position TYPE REF TO if_ixml_element,
l_element_title TYPE REF TO if_ixml_element,
l_element_flight TYPE REF TO if_ixml_element,
l_element_from TYPE REF TO if_ixml_element,
l_element_to TYPE REF TO if_ixml_element,
l_element_dummy TYPE REF TO if_ixml_element,
l_value TYPE string.
DATA: l_xml_table TYPE TABLE OF xml_line,
l_xml_size TYPE i,
l_rc TYPE i.
DATA: lt_erec TYPE TABLE OF hrp5126,
l_erec TYPE hrp5126.
DATA: date(10),
time(4),
filepath TYPE string.
CONSTANTS: filedir TYPE string VALUE 'C:\tmp\',
filename TYPE string VALUE 'ZHR_test'.
START-OF-SELECTION.
fill internal table
SELECT * FROM hrp5126 INTO TABLE lt_erec.
Start filling xml DOM object from internal table lt_erec.
LOOP AT lt_erec INTO l_erec.
*Create the root node 'position'
IF sy-tabix EQ 1.
create an ixml factory
l_ixml = cl_ixml=>create( ).
create Document Object Model
l_document = l_ixml->create_document( ).
Fill root node with value 'position'
l_element_position = l_document->create_simple_element(
name = 'position'
parent = l_document ).
ENDIF.
IF sy-tabix GT 1.
create element jobtitle as child of position
l_value = l_erec-jobtitle.
l_element_title = l_document->create_simple_element(
name = 'job_title'
parent = l_element_position
value = l_value ).
l_value = l_erec-empl_start_date.
l_element_dummy = l_document->create_simple_element(
name = 'StartDate'
parent = l_element_title
value = l_value ).
l_value = l_erec-empl_end_date.
l_element_dummy = l_document->create_simple_element(
name = 'EndDate'
parent = l_element_title
value = l_value ).
ENDIF.
ENDLOOP.
IF sy-subrc NE 0.
WRITE: 'No data in table hrp5125'.
ENDIF.
create a stream factory
l_streamfactory = l_ixml->create_stream_factory( ).
connect internal XML table to streamfactory
l_ostream = l_streamfactory->create_ostream_itable(
table = l_xml_table ).
render the document
l_renderer = l_ixml->create_renderer( ostream = l_ostream
document = l_document ).
l_rc = l_renderer->render( ).
Get time and date
WRITE sy-uzeit2(2) TO time2(2).
WRITE sy-uzeit0(2) TO time0(2).
WRITE sy-datum4(2) TO date0(2).
WRITE sy-datum6(2) TO date2(2).
WRITE sy-datum0(4) TO date4(4).
*Build filename with date and time reference
CONCATENATE filedir filename date time '.xml' INTO filepath.
<i>* This is the code I hope to modify in order to save the xml structure on the application server, with a specified filepath.</i>
<b> OPEN DATASET filepath FOR OUTPUT IN BINARY MODE.
LOOP AT lt_erec into l_erec.
TRANSFER l_erec TO filepath.
ENDLOOP.
CLOSE DATASET filepath.</b>
save XML document
l_xml_size = l_ostream->get_num_written_raw( ).
*This is the code for download to local computer
CALL METHOD cl_gui_frontend_services=>gui_download
EXPORTING
bin_filesize = l_xml_size
filename = filepath
filetype = 'BIN'
CHANGING
data_tab = l_xml_table
EXCEPTIONS
file_write_error = 1
no_batch = 2
gui_refuse_filetransfer = 3
invalid_type = 4
no_authority = 5
unknown_error = 6
header_not_allowed = 7
separator_not_allowed = 8
filesize_not_allowed = 9
header_too_long = 10
dp_error_create = 11
dp_error_send = 12
dp_error_write = 13
unknown_dp_error = 14
access_denied = 15
dp_out_of_memory = 16
disk_full = 17
dp_timeout = 18
file_not_found = 19
dataprovider_exception = 20
control_flush_error = 21
OTHERS = 22.
IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
2) uploading tht PC XML file to APPliaction server -
DATA rec like QISRS_XML_LINE.
OPEN DATASET filepath FOR OUTPUT IN TEXT MODE ENCODING DEFAULT.
LOOP AT l_xml_table into rec.
TRANSFER rec TO filepath.
ENDLOOP.
CLOSE DATASET filepath. -
Uploading & Downloading Files into DMS Server using Web Dynpro Java
Hello Friends,
I want to Upload a file from Portal to Document Management Server and to Download a file from Document Management Server to Portal, In short, I want to give the user the facility to Upload a File into DMS Sever via Portal and also to download the file from DMS Sever via Portal.
Can anybody give me a Input for the same from Both Java Development End as well as ABAP End, more inputs are required from ABAP end, since i have a very less ABAP Experience on working with DMS. Few Questions i have in my mind?
1. How to actually access the file contents with the help of Document Number?
2. With the help of Doc-Number we can extract the file from DMS sever but to provide a option for downloading in portal, the RFC should convert the File Contents into X-String or is there some other way?
+3. While Uploading the Data should be given in Which format to RFC? Are there any limitation with respect to size or formats. Is there any Standard RFC i can use directly in WD4 Java application to upload the file into DMS Server and which will return me the Document Number? +
Please give me your valuable inputs.
Thank You.
Edited by: TusharShinde on Feb 21, 2011 11:13 AM
Now, I am able to download the File in Portal via my WD4 Java Application from DMS Server by passing the Document Number, but I am facing the problem in downloading the PDF files, Its not working for PDF files. Please give me inputs for the same.
Thank You.
Edited by: TusharShinde on Feb 22, 2011 10:13 AMHI,
Thanks for reply.
I am able to download the file From DMS server but I am still not able to Upload the File to DMS Server via Portal. For Download also it is working for all file formats but not for PDF any specific reason for the same.
function zhrf_rfc_dms_download_document.
*"*"Local Interface:
*" IMPORTING
*" VALUE(LV_DOCUMENT) TYPE DOKNR
*" EXPORTING
*" VALUE(LV_FADA) TYPE XSTRING
*" TABLES
*" LT_DOC STRUCTURE BAPI_DOC_FILES2
*" LT_OUT STRUCTURE ZST_DMS_FILE_XSTRING
data: ls_docfiles type bapi_doc_files2,
ls_dms type dms_doc_files,
lt_docfiles type standard table of bapi_doc_files2.
* data: LT_OUT type table of ZST_DMS_FILE_XSTRING.
data :wa_out like line of lt_out.
select single * from dms_doc_files
into ls_dms
where doknr = lv_document."Retrieve file
if sy-subrc = 0.
ls_docfiles-documenttype = ls_dms-dokar.
ls_docfiles-documentnumber = lv_document.
ls_docfiles-documentpart = ls_dms-doktl.
ls_docfiles-documentversion = ls_dms-dokvr.
* ls_docfiles-documenttype = '321'.
* ls_docfiles-documentnumber = LV_DOCUMENT.
* ls_docfiles-documentpart = '000'.
* ls_docfiles-documentversion = 'A0'.
endif.
call function 'BAPI_DOCUMENT_CHECKOUTVIEW2'
exporting
documenttype = ls_docfiles-documenttype
documentnumber = ls_docfiles-documentnumber
documentpart = ls_docfiles-documentpart
documentversion = ls_docfiles-documentversion
documentfile = ls_docfiles
getstructure = '1'
getcomponents = 'X'
getheader = 'X'
* pf_http_dest = 'SAPHTTPA'
pf_ftp_dest = 'SAPFTPA'
tables
documentfiles = lt_docfiles.
data: i_bin type standard table of sdokcntbin,
i_info type standard table of scms_acinf,
v_info type scms_acinf,
v_id type sdok_phid,
v_cat type sdok_stcat.
if sy-subrc = 0.
loop at lt_docfiles into ls_docfiles.
v_id = ls_docfiles-docfile.
v_cat = ls_docfiles-storagecategory.
call function 'SCMS_DOC_READ'
exporting
stor_cat = v_cat
doc_id = v_id
phio_id = ls_docfiles-file_id
tables
access_info = i_info
content_bin = i_bin
exceptions
bad_storage_type = 1
bad_request = 2
unauthorized = 3
comp_not_found = 4
not_found = 5
forbidden = 6
conflict = 7
internal_server_error = 8
error_http = 9
error_signature = 10
error_config = 11
error_format = 12
error_parameter = 13
error = 14
others = 15.
endloop.
if sy-subrc <> 0.
else.
data: v_xstring type xstring.
read table i_info into v_info index 1.
call function 'SCMS_BINARY_TO_XSTRING'
exporting
input_length = v_info-comp_size
importing
buffer = v_xstring
tables
binary_tab = i_bin
exceptions
failed = 1
others = 2.
if sy-subrc <> 0.
endif.
endif.
wa_out-file_name = ls_docfiles-docfile.
wa_out-binary = v_xstring.
lv_fada = v_xstring.
append wa_out to lt_out.
endif.
endfunction.
The above is the RFC Code, I am using in my WD4Java app for downloading the file From DMS Server, Is there any Improvement suggested for above RFC to make it work in more efficient way. Please give me input for my Upload RFC.
Thank You. -
How do i upload an image to a server and put the name into a database table
Ok, i found a php image upload script that im using for a cms
image gallery on my site. But for it to work the way i need to i
have to have certain information submited into a mysql table at the
same time. I could just make it so the user types the name of the
image in a second form, but i would rather not have to as it seems
a clumsy way to do things and opens things up to typos etc.
So, i can upload the image ok, and i can upload data to the
table, but i dont know what I have to do so that the name of the
uploaded file is automaticly inserted into the mysql table.
The first bit of code below is the form I am using to upload
the file to the server. The second bit of code is what I am using
to tell the server what the file name is.
How do I combine the 2 form into one? Please help. It is
driving me to dispair.
Attach Code
<form enctype="multipart/form-data" action="uploader.php"
method="POST">
<input type="hidden" name="MAX_FILE_SIZE" value="500000"
/>
Choose a file to upload: <input name="uploadedfile"
type="file" />
<br />
<input type="submit" value="Upload File" />
</form>
<form action="<?php echo $editFormAction; ?>"
method="post" name="form2" id="form2">
<table align="center">
<tr valign="baseline">
<td nowrap="nowrap" align="right">Image One</td>
<td><input type="text" name="kingsImage1"
value="<?php echo
htmlentities($row_rskingscentre['kingsImage1'], ENT_COMPAT,
'UTF-8'); ?>" size="32" /></td>
</tr>
<tr valign="baseline">
<td nowrap="nowrap" align="right">Image Two</td>
<td><input type="text" name="kingsImage2"
value="<?php echo
htmlentities($row_rskingscentre['kingsImage2'], ENT_COMPAT,
'UTF-8'); ?>" size="32" /></td>
</tr>
<tr valign="baseline">
<td nowrap="nowrap" align="right">Image
Three</td>
<td><input type="text" name="kingsImage3"
value="<?php echo
htmlentities($row_rskingscentre['kingsImage3'], ENT_COMPAT,
'UTF-8'); ?>" size="32" /></td>
</tr>
<tr valign="baseline">
<td nowrap="nowrap"
align="right"> </td>
<td><input type="submit" value="Update record"
/></td>
</tr>
</table>
<p> </p>
<p>
<input type="hidden" name="MM_update" value="form2" />
<input type="hidden" name="kingsHeader" value="<?php
echo $row_rskingscentre['kingsHeader']; ?>" />
</p>
</form>jeffoirecoupe1234 wrote:
> Ok, i found a php image upload script that im using for
a cms image gallery on
> my site. But for it to work the way i need to i have to
have certain
> information submited into a mysql table at the same
time. I could just make it
> so the user types the name of the image in a second
form, but i would rather
> not have to as it seems a clumsy way to do things and
opens things up to typos
> etc.
>
> So, i can upload the image ok, and i can upload data to
the table, but i dont
> know what I have to do so that the name of the uploaded
file is automaticly
> inserted into the mysql table.
>
> The first bit of code below is the form I am using to
upload the file to the
> server. The second bit of code is what I am using to
tell the server what the
> file name is.
>
> How do I combine the 2 form into one? Please help. It is
driving me to dispair.
>
> Attach Code
>
> <form enctype="multipart/form-data"
action="uploader.php" method="POST">
> <input type="hidden" name="MAX_FILE_SIZE"
value="500000" />
> Choose a file to upload: <input name="uploadedfile"
type="file" />
> <br />
> <input type="submit" value="Upload File" />
> </form>
>
> <form action="<?php echo $editFormAction; ?>"
method="post" name="form2"
> id="form2">
> <table align="center">
> <tr valign="baseline">
> <td nowrap="nowrap" align="right">Image
One</td>
> <td><input type="text" name="kingsImage1"
value="<?php echo
> htmlentities($row_rskingscentre['kingsImage1'],
ENT_COMPAT, 'UTF-8'); ?>"
> size="32" /></td>
> </tr>
> <tr valign="baseline">
> <td nowrap="nowrap" align="right">Image
Two</td>
> <td><input type="text" name="kingsImage2"
value="<?php echo
> htmlentities($row_rskingscentre['kingsImage2'],
ENT_COMPAT, 'UTF-8'); ?>"
> size="32" /></td>
> </tr>
> <tr valign="baseline">
> <td nowrap="nowrap" align="right">Image
Three</td>
> <td><input type="text" name="kingsImage3"
value="<?php echo
> htmlentities($row_rskingscentre['kingsImage3'],
ENT_COMPAT, 'UTF-8'); ?>"
> size="32" /></td>
> </tr>
> <tr valign="baseline">
> <td nowrap="nowrap"
align="right"> </td>
> <td><input type="submit" value="Update record"
/></td>
> </tr>
> </table>
> <p> </p>
> <p>
> <input type="hidden" name="MM_update" value="form2"
/>
> <input type="hidden" name="kingsHeader"
value="<?php echo
> $row_rskingscentre['kingsHeader']; ?>" />
> </p>
> </form>
>
>
>
Hi Jeff:
Though this does not show you how to solve this issue via a
code
snippett, there are a couple of extensions at WebAssist.com
that enable
you to do this, they are Data Assist and Digital File Pro.
When you have
time, take a look at these Solution Recipes (tutorials) that
show how
DataAssist is used and then now Digital File Pro is used in
conjunction
with DataAssist:
http://www.webassist.com/professional/products/solutionrecipe/Media_139.asp
http://www.webassist.com/professional/products/solutionrecipe/Media_112.asp
DataAssist can be used to save time when you need to build
database
search and management applications quickly, and Digital File
Pro can be
used to include file upload functionality to your form fields
while
enabling you to insert your server file name into the
database, all on
the same page.
enthusiastically,
mark haynes -
Uploading the file into XI Appl Server (AL11)
Hi Guys,
Iam trying to Upload the file into XI Appl Server (AL11) using SXDA_TOOLS.Can anyone tell me the parameters that i need to pass (Object Type,Program Type,Program etc...) in SXDA_TOOLS for uploading the file.
Thanks,
Kittu.Object type BUS3060
Program type DINP
Program RCCLBI03
File type Phisical file name
File Name /tmp/filename.txt
click on Copy (Ctrl+F5) and enter the source file name by selecting the presentation server from Source frame and target file name by selecting the Application server in the Target Frame.
Hope it'll help you.
Regards,
Eswar. -
Do I need to reduce the images size in pixels before upload them to M.Me?
Do I need to reduce the images size in pixels (actual size jpeg 5616 × 3744 pixels/766kb) before upload them from iPhoto to a Mobile Me Gallery?
Otherwise they will be heavy or the upload process take care of that?
It would be nice that iPhoto took care and optimize the images to display online without any more work, because I´ve 1200 images to upload and they´re jpegs 5616 × 3744 pixels. It´s just to viewing purposes. Not o download or print.
Thanks.In fact no matter if I use a High or Medium compression size JPEG, the size after upload is the same.
Starts with 1,5 MB/5600px (high) or 780kb/5600px (medium) JPEG and ends after upload in 115kb for a 1024px image.
This means that iPhoto auto compress in order to publish to Mobile Me, even if we start with a bigger file.
I hope this info is useful to others.
Thanks. -
I just really need to know... After desigining my UX, how do I go about adding the image into ADOBE FLASH BUILDER to script on top of it?
Any and all advice is welcome.Do you have different versions of the graphic novel pages, or is there just one version of the page? If there is one version, can you crop into the page without losing anything important?
I would guess that there is one version, and that cropping into the page will lose something important. If that's the case, here's how I would handle it:
Make a stage that is 14:9. The size doesn't matter, but 1400x900 could be a good starting point.
Put down a background texture that fits well with the look of the other images. Make that fill the 1400x900 stage.
Place your page graphics so that they are within the center 1200x788 area of the stage.
Set the stage scalemode to "noBorder".
You now have a layout that will work on all devices, as narrow as iPad, and as wide as iPhone 5. All without any code. On the widest devices you'll see a bit of your background pattern to the left and right of the page graphic. On the narrowest devices you'll see a bit of background pattern above and below the page graphic. But you won't lose sight of anything important. -
How to get the full image directory when i upload the image to web page???
hai, how to get the full image directory when i upload the image to web page???
here is the example:
<form action="uploadfile.jsp" method="post">
image<input type="file" name="image" />
<input type="submit" value="submit"/>
<%
String s=request.getParameter("image");
%>
<%=s%>
</form>
i upload the image from C:\image\center.gif. i use request.getParameter just can get the image name like "center.gif". Can anybody help me how to get the full path name. Thanks a lot..There is no need to get the path. It is also fairly pointless as the server cannot access the client's local file system.
Carefully read this article how you can upload files the right way: http://balusc.blogspot.com/2007/11/multipartfilter.html -
Uploading a file into XI server
Hi,
I am using SXDA_TOOLS transaction code in XI ABAP Stack to upload the file into AL11 directory....
there it is asking so many things .
what are the necessary inputs we need to provide there to upload the file into AL11 dir
Regards
SumanHi
go to sxda_tools transaction
give object type as DXPROJECT
Program Type as BAPI
Program as Create
then clicjk on COPY button
in the source column
select the presentation server radio button and give the file name by selecting the help button.
in this u will take the file name form ur desktop.
in the target column select the application server raio button
click on ther remote server check box and selecvt the remote server by pressing F4(this will be ur XI server)
select the file type as P Physical File Name
file name fiels value willbr ur directory name that u havedefine in the sender soap adapter + ur file name that u also define in ur file sender adapter.
for example:
directory/urfilename
if u still face the problem please reply me back.
Thanks
Rinku -
Problem in uploading an image into a CM repository!!
Hi All,
I am trying to use the Fileupload element in JSP dynpage.
My screen has the Fileupload element and a button.
<b>I want to upload an image into a CM repository.</b>
I have put <hbj:form id="myFormId" encodingType="multipart/form-data" > in my jsp page.
The <b>'onClick'</b> method is <b>'onLoadFile'</b>.
<i><b>The following is my code:</b></i>
public void onLoadFile(Event event)
FileUpload fu =
(FileUpload) this.getComponentByName("myfileupload");
if (fu != null) {
// Get file parameters
IFileParam fileParam = fu.getFile();
// Get the temporary file name
File f = fileParam.getFile();
String fileName = fileParam.getFileName();
// Get the selected file name
String ivSelectedFileName = fu.getFile().getSelectedFileName();
try {
int len = (int) f.length();
byte a[] = new byte[len];
FileInputStream fin = new FileInputStream(f);
fin.read(a);
String FileContent = a.toString();
IPortalComponentRequest request =
(IPortalComponentRequest) this.getRequest();
com.sapportals.portal.security.usermanagement.IUser user =
(com.sapportals.portal.security.usermanagement.IUser) request.getUser().getUser();
IResourceFactory factory = ResourceFactory.getInstance();
IResourceContext context = new ResourceContext(user);
RID rid = RID.getRID("/documents/test");
IResource resource = factory.getResource(rid, context);
if (resource != null) {
ICollection parent =
(ICollection) ResourceFactory
.getInstance()
.getResource(
rid,
context);
String out = new String(FileContent);
ByteArrayInputStream data =
new ByteArrayInputStream(out.getBytes());
IContent content =
new Content(data, "text/html", data.available());
IResource fileResource =
parent.createResource(fileName, null, content);
} catch (Exception e) {
<b>..... REMAINING CODE...</b>
I uploaded <b>abc.jpg (<i>size: 2KB</i>)</b>, then, an image file with the same-name is being created in the <b>/documents/test</b> folder but the size is <b>10Bytes</b> only. <b>I am not able to see the image</b> too.
Can any1 help me plzzzz??? Would appreciate any kind of help.
Thanks in advance.
<b>
Regards,
Sai Krishna.</b>I would guess that this is because of the way you try to read the file contents. Maybe you should add some debug statements to find out what you're realling setting as content. It's certainly not KM's fault.
The following sequence of statements looks wrong:
nt len = (int) f.length();
byte a[] = new byte[len];
FileInputStream fin = new FileInputStream(f);
fin.read(a);
String FileContent = a.toString();
IPortalComponentRequest request =
(IPortalComponentRequest) this.getRequest();
com.sapportals.portal.security.usermanagement.IUser user =
(com.sapportals.portal.security.usermanagement.IUser) request.getUser().getUser();
IResourceFactory factory = ResourceFactory.getInstance();
IResourceContext context = new ResourceContext(user);
RID rid = RID.getRID("/documents/test");
IResource resource = factory.getResource(rid, context);
if (resource != null) {
ICollection parent =
(ICollection) ResourceFactory
.getInstance()
.getResource(
rid,
context);
String out = new String(FileContent);
ByteArrayInputStream data =
new ByteArrayInputStream(out.getBytes());
IContent content =
new Content(data, "text/html", data.available());
Why don't you just pass the FileInputStream into the Content object's constructor???
Best regards, Julian -
How can i upload a image file to server by using jsp or servlet.
Hi,
I m gurumoorthy. how can i upload a image file to server by using jsp or servlet without using third party API. pls anyone send me atleast outline of the source code.
Pls send me anyone.
Regards,
Gurumoorthy.I'm not an applet programmer so I can't give you much advice there.
If you want to stream the file from the server before it's entirely uploaded, then I don't believe you can treat it like a normal file. If you're just wanting to throw it up there and then listen to it, then you can treat it like a normal file.
But again, I'm not entirely certain. You might be able to stream the start of the file from the server while you're still uploading the end of it, but it probably depends on what method you're using to do the transfer. -
Upload the data into interface
HI Abapers,
My requirement is that i want to upload the data into the transaction where for the header data there are n number of item transactions , so my requirement is to select all the item transactions that should be done in background, so i have written the code below but it is selectiong only the first row
itd2[] = itd[].
*icount = 1.
LOOP AT itd2 INTO wa_itd2.
icount = 1.
CONCATENATE 'GWA_MTBAL-CHECK(' icount ')' INTO w_fnam.
PERFORM bdc_field USING 'BDC_CURSOR'
w_fnam.
PERFORM bdc_field USING w_fnam
'X'.
icount = icount + 1.
ENDLOOP.
PERFORM bdc_dynpro USING 'SAPMZPP001_PRODORDCONF' '9010'.
PERFORM bdc_field USING 'BDC_OKCODE'
'=GR'.
Pls reply for any changes in code or any clarifications for this post.
Thanks In advance.Hi thank you for kind reply i need to create the entries for CO Activity /Price planning .
i have to upload data to KP26 which i have posted the fields ..
i already cheked the function modules which you have been given .. it is not suitable ..
Is there any ohter BAPI is there ... le t me know ...
regards
purushotham.ineni
Maybe you are looking for
-
How to list the documents in the Portal Activity Report?
Hello, In the Portal Activity Report I would like to see the documents list with number of uploads, number of downloads and the username who have accessed the documents for monthly. Can any one help me where to mention all the details regarding this
-
Where is AirDrop on my MacBook?
I have Lion installed on both my Mac Pro and my MacBook. Both are connected to the same WiFi network, and are within a few feet of each other. On my MacPro, when I open a Finder window one of the items in the Sidebar, directly under "All My Files",
-
Question regarding Inrefaces:Please GUIDE.
A question regarding INTERFACES. 'Each interface definition constitutes a new type. As a result, a reference to any object instantiated from any class that implements a given interface can be treated as the type of the interface'. So : interface I{}
-
Conforming to 29.97 NON DROP
hey all! I have a movie that is 29.97 DF that I would like to conform to 29.97 NDF before I bring it into FCP. how do I do this? thx!
-
Can you Skype Mobile to Mobile for free?
If you have an existing skype account you have used on your PC, can you set that same account up to use your mobile or do you have to have a separate account for your mobile? I loaded the mobile app and signed in with my existing account, if I try t