Upload / download of files
Dear Friends,
I know that the question will probably be redundant to you
all but here it goes: how do I go about uploading a file for
download from my site. ( in this case a PDF ). I suspect that it
has to go in a ftp public folder but don't have a clue how to do it
and perhaps because of shortage of vocabulary on my part, can't
find it in the help files either.
Thank you in advance
Hi Alan,
Thank you for such quick reply, it looks so simple that I'm a
bit confused: by 'Local Site folder' you mean the site folder on my
HD, right? And when uploading the pdf file, do I send it to the
public.html folder of the server along with the page(s)
itself?...I'm sorry I'm such a dumb A. but this is all news to me
and then there's the lingo that sometimes plays tricks on me too.
Thanks a lot
jvmonteiro
Similar Messages
-
ITS - upload/download of files - getting java error on download
Hi, I'm working on ITS to upload/download some files, really simple files in ASC and i use cl_gui_frontend_services=>gui_upload it works fine, and to download the cl_gui_frontend_services=>gui_download that in R/3 works but on the ITS give an error.
Any idea or someone that happend the same?
Thanks in advance to all
Regards
Jaimethere is a dedicated ITS forum at Internet Transaction Server (ITS)
search that forum, this has been discussed may times.
Raja -
FM to Upload/Download Word files
Hi Experts,
My requirement is i want to upload Ms-Word file in SAP through RFC, and after uploading the file i want to reterive that file through RFC.
Is there any standard FM to upload and download the file.
Regards,
Rajneesh GuptaHi use this
reward if help
CALL FUNCTION 'GUI_DOWNLOAD'
EXPORTING
FILENAME = FILENAME
FILETYPE = 'ASC'
TABLES
DATA_TAB = BUFFER
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 -
Does iWeb support the uploading/downloading of files
I believe at one time, iWeb would support the upload and download of files from the mobileme account. I don't see anything like that in the templates. Am I correct in assuming it was there at one time and now it has disappeared?
It's still there.
This is how you do it.
Select something on your iWeb page you want to use as the hyperlink. (for example the words "link to file")
In the Link Inspector window check the box "enable as hyperlink" then select "Link to a file", then choose the file you want to link to. Publish, that's it. If you want the file to automatically open on the downloaders computer, then zip it first and select the zipped file to link to.
David -
Uploading/downloading a file to database
Hello friends,
I have created a page into which there is a button names "Upload Resume".
The idea is when an HR person clicks this button it should fetch out the resume
from his local machine and it save resume into the database.
My doubts are as follow:-
1. Where does the resume get stored in database or at the unix box
2. What we can do to download the same resume.
Please guide me.
Waiting for your responses.
Regards,
Pankaj Kediauser12055837 wrote:
Hi,
The code that you have referred to me is a lot different than what I currently have. For example in the code it seems like you have the following statements(below) in the Process Request of Controller, But I have it in the AMImpl. Please let me know where these should be.Off course you can have the code in the AM as well.
>
OAApplicationModule ap = pageContext.getApplicationModule(webBean);
OAViewObject vo = (OAViewObject)ap.findViewObject("FndLobsVO");
if (!vo.isPreparedForExecution())
vo.executeQuery();
Row row = vo.createRow();
vo.insertRow(row);
Also I have my BLOB in the same view object as other data(LacEmpExposureVO) which refers to a custom table. I am NOT storing them in the FND_LOBS.
Do I need 2 columns one for storing the "uploaded file name" of type varchar2 and the other of type BLOB for the "uploaded file"
Yes it is the same as in FND_LOBS, i have a column FILE_NAME that contains the name (varchar2) of the uploaded file.
The OAMessageFileUploadBean View Attribute points to the BLOB column, called FILE_DATA (in the case of FND_LOBS).
Either ways it is not working as expected.
I modified the code like this and it is not erroring now, But not saving the file name either. When I display the column on the search page then it is displaying the contents of the BLOB column (UploadDataBlob) taking up the entire page instead of displaying it as a hyper link with the file name.
// get a handle to the uploadbean. the column UploadDataBlob is of type BLOB
OAMessageFileUploadBean uploadBean = (OAMessageFileUploadBean)webBean.findChildRecursive("UploadDataBlob");
// set file name display in the column UploadDataBlobFilename of type varchar2
OADataBoundValueViewObject displayNameBoundValue = new OADataBoundValueViewObject(uploadBean, "UploadDataBlobFilename");
uploadBean.setAttributeValue(DOWNLOAD_FILE_NAME,displayNameBoundValue);
In the code above if I change the following statement:
OADataBoundValueViewObject displayNameBoundValue = new OADataBoundValueViewObject(uploadBean, "UploadDataBlobFilename");
TO
OADataBoundValueViewObject displayNameBoundValue = new OADataBoundValueViewObject(uploadBean, "UploadDataBlob");
I get the following error:
UploadDataBlob - JBO-25009: Cannot create an object of type:oracle.jbo.domain.BlobDomain with value:F1606_ApplicantFlowLog.pdf
You cannot assign the BLOB column this way, because the OADataBoundValueViewObject is only used to get the UploadBean to display the uploaded file name, that is why i assign the FileName.
Why do you want to assign the BLOB column ?
Use this to assign the file name:
// set file name display
OADataBoundValueViewObject displayNameBoundValue = new OADataBoundValueViewObject(uploadBean, "FileName");
uploadBean.setAttributeValue(DOWNLOAD_FILE_NAME,displayNameBoundValue);
And for example this to assign MIME type (if you have this info in your table off course):
// set content type (MIME)
OADataBoundValueViewObject contentBoundValue = new OADataBoundValueViewObject(uploadBean, "FileContentType");
uploadBean.setAttributeValue(FILE_CONTENT_TYPE, contentBoundValue);
>
Any Help is greatly appreciated..
Thanks,
Mir -
Quick Question : Upload/Download text files
Hi,
can I use interMedia to upload text files on the Database. I don't need to query them for size or
whatever metadata but I'd like to retrieve them without any harm done :-)
I don't expect any problems but would still like to confirm.
Thanks,
SteveWhich interMedia object are you using to store the content?
No we don't do anyting to the content. You won't be able to use it easily within the database. You won't have any character set support. You will need to specify the mimetype yourself.
But it should work for raw storage and retrieval. -
Unable to upload/download large html files(71 MB) into rooms
Hi,
I am unable to upload download HTML file(71 MB)into folders of collabration rooms.if it is uploaded also its getting Scripted/corrupted.
other files are working properly.
Is it because of large size or any other configuration settings.there is no error msg buts its getting scripted.
Waiting for your response
Thanks
Amit kumar KoyalHi Kerstin,
the note also says: "This restriction is no longer valid".
With SP19 I do run tests continously that test content up to 2GB.
Amit: What portal version are you running? What repository implementation is the file stored in? If the file is stored in a file system, what is it's file size limitation?
Regards,
Michael -
I'm running MX 2004 on Windows XP. All's been well for the
last few months, doing site maintenance at this part-time job. I
get tangled up a bit in checking files in and out, coming from
GoLive, and since there's no one else with FTP access, yesterday I
told it to check the entire site in. I didn't have any changes I
didn't want to commit, and I figured that would keep things a
little neater.
As of today, I can post revisions to existing pages, or
resize image files, but when I create a new page, or try to place a
new image file on an existing page, I can't upload it.
So, to be clear: I have two pages already up on the site,
index.html and apple.html, with a link between them. If I create
new page banana.html and make a link to it from index, index.html
will upload that revised link, but banana.html is refused with the
message
FTP error: The file may not exist, or there could be a
permission problem
I know the file doesn't exist (remotely); I just made it.
I've gone to Prefs and disable Check In / Check Out, which didn't
do me any good. What next?Can you open the FTP log, select one of these new files and
upload it- then
cut and paste relevant part of the ftp log?
Also- does this site have a "host directory", a subfolder
that your public
files need to go into? If yes- is this folder listed in the
host directory
line of the remote server info?
And odd past thing i've seen-
Had hosting that used public_html as the public folder name.
They also had a symbolic link named www that pointed to
public_html
Could upload/download existing files with www in "host
directory" line of
dw; but could not upload new files or work with files in
subfolders.
changing to public_html instead of the www symlink fixed this
for me.
Alan
Adobe Community Expert, dreamweaver
http://www.adobe.com/communities/experts/ -
Function Group : Upload/ download
Hi Experts,
is there any Function group which will help me upload/download excel file?Kindly advise.
thanks & regards,
M.SYes you can but you must save data in text mode (tabulation or delimited) .
It's not possible to upload directly a excel file with GUI_UPLOAD
But it's possible with ALSM_EXCEL_TO_INTERNAL_TABLE.
Rgds -
FTP uploading & downloading.
I creating my website using iweb, i was wonder is it possible to create a FTP access on my website for my clients to upload & download files?
Right now they are all using third party FTP client "free software like Cyberduck for Mac User & WinSCP for PC User" to access my FTP for uploading & download of files now.
Message was edited by: robinlimYou can do this from any server.
My hosting service, Host Excellence, allows me to create first level directory folders and call them what I want.
You can give your clients access to a folder and set privileges in the control panel.
The basic hosting plan allows you about six sites and a free domain name.
I don't know about password protecting individual folders but you can ask their tech support about this or plough your way through the manual.
http://www.hostexcellence.com/index.php/v2/pages.packages -
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. -
File Upload/Download Problem
Hi,
I have a fileupload button. The attributes type is XSTRING, which i bound it with "data" property of download.
When i download this file with "download" element, it comes in a zip file and as XML files. Only the jpg files are downloaded correctly.
How can i solve this?
Thanks.Hi,
I am so sory for my very late answer.
If you want to upload/download files, you should have a node which includes attributes
(attribute names are just example ):
1) filename(type: for example afilename),
2)mimetype (type : string),
3) file(type : a data element with type 'RAWSTRING').
You must match your fileupload element's attributes with them:
"DATA" attribute --> file ,
"fileNAME" attribute--> filename,
"mimeTYPE" attritube -->mimetype.
When you want to download this file, you should put a filedownload element and match this element's attributes with the node's attributes which i described above. -
Upload/Download file to/from a document library in a SharePoint online site
Hi,
I am referring to the below blog for Upload/Download file to/from a document library in a SharePoint online site.
http://blogs.msdn.com/b/rohitpuri/archive/2007/04/10/upload-download-file-to-from-wss-document-library-using-dav.aspx?CommentPosted=true#commentmessage
I would like to know if this is feasible with a SharePoint online site.
If feasible, how can I resolve the below exception I am getting while using the code.
“The remote server returned an error: (403) Forbidden”.
Thanks,
ThananHi,
Actually what I am trying to achieve is the two things.
1) By using only the user's name, need to upload/download from/to the document library of SharePoint online site using the CSOM. (i.e., achieving Single Sign On / Windows Authentication)
2) I need to achieve the above only by passing the document URL; not by hardcording/ configuring the document library name in the windows application.
Can anyone pls help on this now?
[Below code is working fine. But need to arrive the solution whereas the above 2 conditions are not violated.
using (var clientContext
= new ClientContext("https://yoursiteurl.com"))
string passWd
= "password";
SecureString securePassWd
= new SecureString();
foreach
(var c in passWd.ToCharArray())
securePassWd.AppendChar(c);
clientContext.Credentials
= new SharePointOnlineCredentials("username", securePassWd);
using
(var fs =
new FileStream("fileName",
FileMode.Open))
var fi =
new FileInfo("fileName");
var list = clientContext.Web.Lists.GetByTitle("Doc Library");
clientContext.Load(list.RootFolder);
clientContext.ExecuteQuery();
var fileUrl = String.Format("{0}/{1}", list.RootFolder.ServerRelativeUrl,
fi.Name);
Microsoft.SharePoint.Client.File.SaveBinaryDirect(clientContext, fileUrl,
fs, true);
Thanks,
Thanann -
Hi
When using the file upload/download functionality, APEX stores the uploaded object in a table by default. See: http://download-uk.oracle.com/docs/cd/B31036_01/doc/appdev.22/b28839/up_dn_files.htm#CJAHDJDA
Is there a way to specify that the file should NOT be stored in a table, but rather, be stored on the file system?. Example in a directory object location.
I intend to use the upload/download functionality to load csv files that will then be parsed as external tables.
Thanks
KezieHi,
I modified the above procedure to point to my tables and trying to create the procedure in Apex database and am getting the following error:
Procedure:
CREATE OR REPLACE PROCEDURE write_blob_to_file
( p_docid IN NUMBER,
p_directory IN VARCHAR2,
p_filename IN VARCHAR2 DEFAULT NULL )
IS
l_file utl_file.file_type;
l_buffer RAW(32767);
l_amount BINARY_INTEGER := 32767;
l_position INTEGER := 1;
l_blob BLOB;
l_length INTEGER;
l_filename VARCHAR2(400);
BEGIN
SELECT BLOB_CONTENT, MPP_name
INTO l_blob, l_filename
FROM MPP_FILES
WHERE id = p_docid;
IF p_filename IS NOT NULL THEN
l_filename := p_filename;
END IF;
l_length := dbms_lob.getlength( l_blob );
l_file := utl_file.fopen( p_directory, l_filename, 'wb', 32767 );
WHILE l_position < l_length LOOP
dbms_lob.read( l_blob, l_amount, l_position, l_buffer );
utl_file.put_raw( l_file, l_buffer, TRUE );
l_position := l_position + l_amount;
END LOOP;
utl_file.fclose( l_file );
EXCEPTION
WHEN others THEN
IF utl_file.is_open( l_file ) THEN
utl_file.fclose( l_file );
END IF;
raise_application_error( -20001, SQLERRM );
END write_blob_to_file;
Error:
ERROR at line 6: PLS-00201: identifier 'UTL_FILE' must be declared
4. p_filename IN VARCHAR2 DEFAULT NULL )
5. IS
6. l_file utl_file.file_type;
7. l_buffer RAW(32767);
8. l_amount BINARY_INTEGER := 32767;
Please let me know what am i missing. I am pretty new to PL/SQL and Apex.
Also wondering is there a way to download files from tables using Java Stored Procedure. Please give some pointers.
Ramesh K -
File upload, download using ADF UIX and not JSP
I have examples for the file upload, download using JSP
But I want to use ADF UIX. Look and feel in this is impressing and I want to use this. Any one have example for this.
Users will select a file from their desktop
This will be stored into the database (Any document. Word, Excel)
When they query the records then the UIX column need to give a hyperlink. Clicking on the link should prompt to download the file to the local systemSure, I use the Apache Commons File Upload package, so that is what I will discuss here ( [Commons File Upload|http://commons.apache.org/fileupload/] ).
The Commons File Upload uses instances of ProgressListener to receive upload progress status. So first create a simple class that implements ProgressListener:
public class ProgressListenerImpl implements ProgressListener {
private int percent = 0;
public int getPercentComplete() {
return percent;
public void update(long pBytesRead, long pContentLength, int pItems) {
if (pContentLength > -1) { //content length is known;
percent = (new Long((pBytesRead / pContentLength) * 100)).intValue();
}So in your Servlet that handles file upload you will need to create an instance of this ProgressListenerImpl, register it as a listener and store it in the session:
ServletFileUpload upload = new ServletFileUpload();
ProgressListenerImpl listener = new ProgressListenerImpl();
upload.setProgressListener(listener);
request.getSession().setAttribute("ProgressListener", listener);
...Now create another servlet that will retrieve the ProgressListenerImpl, get the percent complete and write it back (how you actually write it back is up to you, could be text, an XML file, a JSON object, up to you):
ProgressListenerImpl listener = (ProgressListenerImpl) request.getSession().getAttribute("ProgressListener");
response.getWriter().println("" + listener.getPercentComplete());
...Then your XMLHttpRequest object will call this second servlet and read the string returned as the percent complete.
HTH
Maybe you are looking for
-
My 12v chargers no longer charge my iPod why?
I have several 12v USB chargers that I have used in the past to charge my iPod v 5.0.1 model C008LL either in the car or on my boat. Now I either get a "Charging with this accessory is not supported" Griffin Power Pod or the adapter charges (Griffin
-
Status of transfer (shipment costs header data)
Kindly explain it to me in general language, Status of transfer (shipment costs header data) This status describes the stage of forwarding for a shipment cost document. Use The status is determined by the system and cannot be changed manually. To det
-
BI Admin Cockpit - RSIM_CHECK_REP_DATA does not exist
Hi All, we recently upgraded to BW731 SP06 and had quite some issues with the BI Admin Cockpit. Most of them have been solved in the meantime, however process chain 0TCTHC_CHECK_REP_DATA calls a program (RSIM_CHECK_REP_DATA) which does not exist. It
-
Itunes says I need to authorize my computer and when I go to store, it says I am authorized? I can figure out how to fix this problem.
-
Tcode for Useful life of the asset
Hi Gurus, Is there any standard report or Tcode to know the "Useful life of the Assets" ? Madhu