Uploading Zip Files
I recently tried to send several files to a friend for a school project and was unable to do so. When I worked with my PC I would send all the files to a zip folder and upload the zip file. Is there a way to create zip files on a mac?
Mark,
Click on the folder that you want to zip and select File>Create Archive of "Folder XX." You will now have a file named "Folder XX.zip. That is all you have to do.
;~)
Similar Messages
-
Hi,
I want to upload a zip file in some server location,till now i have below code,but not able to get any clue how to upload zip file to server when user press Begin button.
Can someone please help me?
>
JSP code:
<af:inputFile label="Upload:"
valueChangeListener="#{ifarm.fileUploaded}"/>
<af:commandButton text="Begin"/>
Bean code :
public void fileUploaded(ValueChangeEvent valueChangeEvent) {
UploadedFile file = (UploadedFile) valueChangeEvent.getNewValue();
if (file != null)
System.out.println("************** "+file.getFilename().toString());
>>All you need to do is to get hold of the input stream of the upload file and copy it to an file on your server (which you can create).
public static int copy(InputStream input, OutputStream output)
throws IOException {
byte[] buffer = new byte[1024 * 4];
int count = 0;
int n = 0;
while (-1 != (n = input.read(buffer))) {
output.write(buffer, 0, n);
count += n;
return count;
public void fileUploaded(ValueChangeEvent valueChangeEvent) {
UploadedFile file = (UploadedFile)valueChangeEvent.getNewValue();
if (file != null) {
File ff;
try {
// create a temporary file on the host server
ff = File.createTempFile("xx", "yy");
FileOutputStream os = new FileOutputStream(ff);
IOUtils.copy(file.getInputStream(), os);
} catch (IOException e) {
e.printStackTrace();
System.out.println("************** " +
file.getFilename().toString());
}Timo -
Hi Experts,
Is it possible to upload multiple files or can we upload a ZIP file in web dynpro abap????
I got to know about an intersting UI element of AcfUpDownload UI element, but still am not getting clear on it.
Also I have checked in this link Web Dynpro ABAP Tutorial: ACFUpDownload and ACFExecute as well as standard component WD_TEST_APPL_ACFUPDOWN. But now I have confused a lot
Please give me some idea, as how can I go ahead for uploading ZIP files.
BR,
RAM.Thanks Kiran,
I was waiting for your reply only
Even I saw the same Flash Islands wiki, but thought that I can do the same thing using normal web UI element itslef.
Also please clear me one thing Kiran, can I use the File Upload UI element for uploading the ZIP File???
As my client already has ZIP file in hand, I don't wish to go ahead for CL_ABAP_ZIP again.
BR,
RAM. -
How do you upload a zip files in the portal v2.
Hello,
Well both procedures are good, the difference between them is that the first procedure has public execute and the second one does not have public execute that's why wasn't working...
Regards. -
Socket blocking on read operation while uploading zip file to the server
I am trying to upload a zip file to the server
Client thread creates the zip file ( of the modified files) and it even completes writing the data to the socket stream.
Now if the server thread tries to read the same data from the stream, it blocks on read operation.
While downloding the zip file from the server works fine.
Thanks in advanceYou can use the URL object to upload it as multipart/form-data.
http://forum.java.sun.com/thread.jspa?threadID=579720&messageID=3997264
Or check out some of the file uploaders out there.
http://www.google.nl/search?hl=nl&q=site%3Asun.com+upload+applet&btnG=Zoeken&meta= -
Can't upload Web Job: Could not upload zip file for job:
A few days ago, out of the blue my Web Jobs I had associated with one of my Azure Websites disappeared. Actually at the root of the dashboard in the Portal there were still listed as a Job collection BUT not associated with the website. There were also errors
in the Job logs but I foolishly deleted the Jobs and tried to upload them again. However I keep getting an error when attempting to upload the zip file [as I had previously done] against this same website. I've tried against another website and it worked ok.
But I need to upload against this ONE particular site as the webjobs get files from that website. I did discovered lots of nasty trace in the kudu log file. Here is some:
I've searched and search forums and discussions but can't proceed. Can anyone assist me?
<Events><Event><System><Provider Name="ASP.NET 4.0.30319.0"/><EventID>1309</EventID><Level>2</Level><Task>0</Task><Keywords>Keywords</Keywords><TimeCreated SystemTime="2015-03-14T16:17:48Z"/><EventRecordID>-1680563781</EventRecordID><Channel>Application</Channel><Computer>RD000D3AD0013E</Computer><Security/></System><EventData><Data>3005</Data><Data>An
unhandled exception has occurred.</Data><Data>3/14/2015 4:17:47 PM</Data><Data>3/14/2015 4:17:47 PM</Data><Data>63d127c928c44f0084bdb2a93fc5ab81</Data><Data>1</Data><Data>1</Data><Data>0</Data><Data>/LM/W3SVC/1897069090/ROOT-4705-130708234647101317</Data><Data>Full</Data><Data>/</Data><Data>D:\Program
Files (x86)\SiteExtensions\Kudu\43.40212.1385\</Data><Data>RD000D3AD0013E</Data><Data></Data><Data>6368</Data><Data>w3wp.exe</Data><Data>IIS APPPOOL\payskool-schooladmin</Data><Data>InvalidOperationException</Data><Data>The
pre-application start initialization method Run on type WebActivator.ActivationManager threw an exception with the following error message: Exception has been thrown by the target of an invocation..
at System.Web.Compilation.BuildManager.InvokePreStartInitMethodsCore(ICollection`1 methods, Func`1 setHostingEnvironmentCultures)
at System.Web.Compilation.BuildManager.InvokePreStartInitMethods(ICollection`1 methods)
at System.Web.Compilation.BuildManager.CallPreStartInitMethods(String preStartInitListPath, Boolean& isRefAssemblyLoaded)
at System.Web.Compilation.BuildManager.ExecutePreAppStart()
at System.Web.Hosting.HostingEnvironment.Initialize(ApplicationManager appManager, IApplicationHost appHost, IConfigMapPathFactory configMapPathFactory, HostingEnvironmentParameters hostingParameters, PolicyLevel policyLevel, Exception appDomainCreationException)
Exception has been thrown by the target of an invocation.
at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor)
at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments)
at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
at System.Reflection.MethodBase.Invoke(Object obj, Object[] parameters)
at WebActivator.BaseActivationMethodAttribute.InvokeMethod()
at WebActivator.ActivationManager.RunActivationMethods[T]()
at WebActivator.ActivationManager.RunPreStartMethods()
at WebActivator.ActivationManager.Run()
Could not load file or assembly 'Newtonsoft.Json, Version=4.5.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)
at Microsoft.AspNet.SignalR.DefaultDependencyResolver.RegisterDefaultServices()
at Microsoft.AspNet.SignalR.DefaultDependencyResolver..ctor()
at Kudu.Services.Web.App_Start.NinjectServices.SignalRNinjectDependencyResolver..ctor(IKernel kernel)
at Kudu.Services.Web.App_Start.NinjectServices.RegisterServices(IKernel kernel)
at Kudu.Services.Web.App_Start.NinjectServices.CreateKernel()
at Ninject.Web.Common.Bootstrapper.Initialize(Func`1 createKernelCallback)
at Kudu.Services.Web.App_Start.NinjectServices.Start()Thanks very much for your prompt reply. This has indeed fixed the issue.
Can I ask what might have caused the issue in the first place to necessitate the restart? Is it possibly there were too many logs files and that perhaps disk space became an issue for the Website?
Kind regards, -
Hi Everyone,
I need to upload zip files into the KM repository and i am able to upload these files. but i am not able to access them.
Now the catch is when i try to access them from IE8 i fail at the task but when i try from google chrome i am able to access the file.
Could anyone get me the reason!
Best Regards,
Simran MatharuHi Simran,
Please check the IE8 browser settings and make changes accordingly. Also check the IE8 compatibitly for your server in service market place. http://service.sap.com/pam
Best Regards
Arun Jaiswal -
CFFILE Uploading Mac Zip Files
I have a client who is getting errors when attempting to upload zip files from his Mac (No file). I realize the encoding is different and have been researching the issue without much success. In my attempt to solve the problem I have included every application/type for compressed files that I have been able to find.
The website is on a UNIX server running CF7.
If anyone has had this issue before, I would be interested in hearing your thoughts.
Thanks!
DavidHave you examined the form scope to see if there is any data there?
<cfdump var="#form#"><cfabort>
Have you examinied the http post headers to see if the data is there?
There could be any number of systems that might be preventing this file data from making it from the client to the server. I would start with trying to nail down whether the data is even comming into ColdFusion before I loose too much hair on why ColdFusion has a problem. -
How to upload html file document with his.files
i can upload only one file and i can't upload html file with his images or some more pages
index.html
chapter1.html
chapterN.html
I see this problem so: upload zip file and extract to os(i use linux) and saved link to his index.html.
IS IT POSSIBLE.
Thanks.
Sorry for my english.The simplest way to handle this would be to Upload the page and files to a remote server space and send your email buddies a link to the site. Barring that....
How to Code HTML Emails
http://www.sitepoint.com/article/code-html-email-newsletters/
Use inline CSS styles for fonts and background colors. Use Tables to hold your page elements. Use absolute URLs to images hosted on your web server because attached images may not get through. Give people who can't see your HTML page in their email client a link to the HTML page on your web server.
Download some HTML Email Templates from the links below to help you get started.
Mail Chimp
http://www.mailchimp.com/resources/html_email_templates/
Constant Contact
http://www.constantcontact.com/email-marketing/html-email-templates/index.jsp
Nancy O.
Alt-Web Design & Publishing
Web | Graphics | Print | Media Specialists
www.alt-web.com/
www.twitter.com/altweb
www.alt-web.blogspot.com -
Problem adding zip files - is there a size limit?
Is there a size limit on zip files that are uploaded to the system? I have tried to upload zip files (18Mb and 28Mb) this morning, and on both occasions not all of the zipped information is uploaded.
Please could you let me know why only half of my files and folder names are being loaded.
Thanks very much
KateI had this problem. Portal was installed here with the default
storage settings on all of the tables, including
WWDOC_DOCUMENT$. My upload would crash with NO ERRORS. I
looked at the apache error_log file and saw just what I
expected: that table was blown out becaus it had reached max
extents. I moved that table to its own gigantic tablespace and
sure enough, the load went through fine. You might also be
interested in what you find in WWDOC_DOCUMENT$. Because even
after a purge, I found that files that got partially loaded were
still in that table, even though they weren't visible through
the portal. So I deleted them, and freed up even more space.
I'd recommend you move that document table to a separate
tablespace that the DBA can manage separately, because it's not
going to grow like a traditional transactional system, so it
really doesn't belong in the same area.
Hope this helps,
Adrian Klingel
Exaweb -
Can any one give some info regarding extracting a uploaded zip file on server from my web application..
my environment is...
IBM websphere
Struts frame work.
My uploaded zip file contains some excel sheets and some images.
each image name is mentioned in excel sheet.
I need to migrate the contents in excel to database.
My each excel sheet contains a Learning Course for a online exam with couple of Questions.
each Question in may containg some image.
so, my problem is uploading the contents of course in excel sheet to database along with images names as
course1_question1_imagename.gif
I am expecting some suggestions and help from the FORUMS.I am expecting some suggestions and help from the
FORUMS.
good luck -
Sending zip file(or folder ) from desktop to email attachment
Dear all
I hvae 11 files on my desktop of differnt file type like doc, pdf, xls ...
By using GUI_UPLOAD, i am able to upload one file at a time
Is there any way to upload zip file at once OR folder containing all the files at a single go OR all the files can be uploaded in a single program.
Is there any class, function module to upload zip file. I am aware of cl_abap_zip but not able to use it.
Ravi
Edited by: ravihsr on Mar 24, 2011 3:05 AM
Edited by: ravihsr on Mar 24, 2011 3:14 AMHi
This the code:
REPORT Z263_EMAIL.
data: T_MAIL_PACK TYPE TABLE OF SOPCKLSTI1,
T_MAIL_HEAD TYPE TABLE OF SOLISTI1,
T_MAIL_REC TYPE TABLE OF SOMLRECI1,
MAIL_HEAD TYPE SODOCCHGI1,
T_MAILTXT TYPE TABLE OF SOLISTI1,
WA_MAIL_PACK TYPE SOPCKLSTI1,
WA_MAIL_HEAD TYPE SOLISTI1,
WA_MAIL_REC TYPE SOMLRECI1,
WA_MAILTXT TYPE SOLISTI1,
TAB_LINES TYPE I.
*FILLING HEADER
MAIL_HEAD-OBJ_NAME = 'NEW MAIL TO BE SENT'.
MAIL_HEAD-OBJ_DESCR = 'SUBJECT FOR MAIL'.
WA_MAILTXT-LINE = 'MAIL OUTPUT'.
APPEND WA_MAILTXT TO T_MAILTXT.
WA_MAIL_REC-RECEIVER = '******@****.COM'. "email-id
WA_MAIL_REC-REC_TYPE = 'U'.
APPEND WA_MAIL_REC TO T_MAIL_REC.
DESCRIBE TABLE T_MAILTXT LINES TAB_LINES.
CLEAR WA_MAIL_PACK-TRANSF_BIN.
WA_MAIL_PACK-HEAD_START = 1.
WA_MAIL_PACK-HEAD_NUM = 0.
WA_MAIL_PACK-BODY_START = 1.
WA_MAIL_PACK-BODY_NUM = TAB_LINES.
WA_MAIL_PACK-DOC_TYPE = 'RAW'.
WA_MAIL_PACK-OBJ_NAME = 'C:\Documents and Settings\rmalhotra\Desktop\NEW.RAR'.
APPEND WA_MAIL_PACK TO T_MAIL_PACK.
WA_MAIL_PACK-TRANSF_BIN = 'X'.
WA_MAIL_PACK-HEAD_START = 1.
WA_MAIL_PACK-HEAD_NUM = 1.
WA_MAIL_PACK-BODY_START = 1.
WA_MAIL_PACK-BODY_NUM = TAB_LINES.
WA_MAIL_PACK-DOC_TYPE = 'XLS'.
WA_MAIL_PACK-OBJ_NAME = 'C:\Documents and Settings\rmalhotra\Desktop\a1.xls'.
WA_MAIL_PACK-OBJ_DESCR = 'ORDERS'.
*WA_MAIL_PACK-DOC_SIZE = TAB_LINES * 128.
APPEND WA_MAIL_PACK TO T_MAIL_PACK.
DESCRIBE TABLE gv_objbin LINES tab_lines.
WA_MAIL_PACK-transf_bin = 'X'.
WA_MAIL_PACK-head_start = 1.
WA_MAIL_PACK-head_num = 1.
WA_MAIL_PACK-body_start = 1.
WA_MAIL_PACK-body_num = tab_lines.
WA_MAIL_PACK-doc_type = 'PDF'.
WA_MAIL_PACK-obj_name = 'C:\Documents and Settings\rmalhotra\Desktop\RAGHAV_SMARTFORM.pdf'.
*WA_MAIL_PACK-doc_size = tab_lines * 255.
APPEND WA_MAIL_PACK TO T_MAIL_PACK.
WA_MAIL_PACK-transf_bin = 'X'.
WA_MAIL_PACK-head_start = 1.
WA_MAIL_PACK-head_num = 1.
WA_MAIL_PACK-body_start = 1.
WA_MAIL_PACK-body_num = tab_lines.
WA_MAIL_PACK-doc_type = 'TXT'.
WA_MAIL_PACK-obj_name = 'C:\Documents and Settings\rmalhotra\Desktop\VOTES.TXT'.
*WA_MAIL_PACK-doc_size = tab_lines * 255.
APPEND WA_MAIL_PACK TO T_MAIL_PACK.
WA_MAIL_PACK-transf_bin = 'X'.
WA_MAIL_PACK-head_start = 1.
WA_MAIL_PACK-head_num = 1.
WA_MAIL_PACK-body_start = 1.
WA_MAIL_PACK-body_num = tab_lines.
WA_MAIL_PACK-doc_type = 'DOC'.
WA_MAIL_PACK-obj_name = 'C:\Documents and Settings\rmalhotra\Desktop\TS-MRO-47- Warranty Claim Creation v1.0.doc'.
*WA_MAIL_PACK-doc_size = tab_lines * 255.
APPEND WA_MAIL_PACK TO T_MAIL_PACK.
CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1'
EXPORTING
DOCUMENT_DATA = MAIL_HEAD
PUT_IN_OUTBOX = ' '
COMMIT_WORK = 'X'
IMPORTING
SENT_TO_ALL =
NEW_OBJECT_ID =
TABLES
PACKING_LIST = T_MAIL_PACK
OBJECT_HEADER =
CONTENTS_BIN =
CONTENTS_TXT = T_MAILTXT
CONTENTS_HEX =
OBJECT_PARA =
OBJECT_PARB =
RECEIVERS = T_MAIL_REC
EXCEPTIONS
TOO_MANY_RECEIVERS = 1
DOCUMENT_NOT_SENT = 2
DOCUMENT_TYPE_NOT_EXIST = 3
OPERATION_NO_AUTHORIZATION = 4
PARAMETER_ERROR = 5
X_ERROR = 6
ENQUEUE_ERROR = 7
OTHERS = 8
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
SUBMIT RSCONN01.
Regards
Raghav Malhotra -
To upload the ZIP file and get the filenames available in ZIP file in ABAP
Hi Experts,
For my requirement, file from legacy comes as ZIP file with number of files in that.
Please provide one code sample to upload the ZIP file from local workstation and get the filenames available in ZIP file to check few filename validation checks for the available files in report program.
Thanks in Advance,
Regards,
Basani1. Copy the ZIP file into App server
2. Call function
call function 'RFC_REMOTE_PIPE'
destination 'SERVER_EXEC'
exporting
command = command " Unzip command gunzip /path & file
read = 'X'
tables
pipedata = std_lines
then you can read the files and can validate the file names
a® -
Why can't I upload a .zip file to my Creative Cloud?
Each time I try and upload a .zip file it gets about 80% complete then I get a message that says "Sorry, an error has occurred." I've uploaded lots of .zip files in the past. What has changed???
JimHdk wrote:
You can directly transfer photos via Bluetooth or WiFi between the iPhone, PCs, and Macs with an App like Photo Transfer.
Huh? Bother to read the app description? Only works over WiFi. -
How to upload a PDF file, zip it and download the zipped file?
Hi Experts,
I have a requirement to upload a PDF file, convert that to a ZIP file and download it. If anyone has worked on this requirement, can you please guide me on this? Thanks.
AviHere you go. Hope it helps.
REPORT zrich_0004.
DATA: lt_data TYPE TABLE OF x255.
DATA: ls_data LIKE LINE OF lt_data.
DATA: lv_zip_content TYPE xstring.
DATA: lv_size TYPE i.
DATA: lv_filename TYPE string.
DATA: lv_path TYPE string.
DATA: lv_fullpath TYPE string.
DATA: lt_filetab TYPE TABLE OF file_table.
DATA: ls_filetab LIKE LINE OF lt_filetab.
DATA: lv_rc TYPE sy-subrc.
DATA: lv_content TYPE xstring.
DATA: lo_zip TYPE REF TO cl_abap_zip.
SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE text-001.
PARAMETERS: p_up TYPE string DEFAULT 'C:\upload.pdf' .
PARAMETERS: p_down TYPE string DEFAULT 'C:\download.zip' .
SELECTION-SCREEN END OF BLOCK b1.
AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_up.
REFRESH lt_filetab. CLEAR ls_filetab.
cl_gui_frontend_services=>file_open_dialog(
CHANGING
file_table = lt_filetab
rc = lv_rc
EXCEPTIONS
OTHERS = 5 ).
READ TABLE lt_filetab INTO ls_filetab INDEX 1.
IF sy-subrc = 0.
p_up = ls_filetab-filename.
ENDIF.
AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_down.
CLEAR: lv_filename, lv_path, lv_fullpath.
cl_gui_frontend_services=>file_save_dialog(
CHANGING
filename = lv_filename
path = lv_path
fullpath = lv_fullpath
EXCEPTIONS
OTHERS = 4 ).
p_down = lv_fullpath.
START-OF-SELECTION.
CREATE OBJECT lo_zip.
* Read the data as a string
cl_gui_frontend_services=>gui_upload(
EXPORTING
filename = p_up
filetype = 'BIN'
IMPORTING
filelength = lv_size
CHANGING
data_tab = lt_data
EXCEPTIONS
OTHERS = 19 ).
* convert binary to xstring
CLEAR lv_content .
CALL FUNCTION 'SCMS_BINARY_TO_XSTRING'
EXPORTING
input_length = lv_size
IMPORTING
buffer = lv_content
TABLES
binary_tab = lt_data
EXCEPTIONS
failed = 1
OTHERS = 2.
* Get the file name of the uploaded file
DATA: lv_upfilename TYPE string.
DATA: lv_tmp TYPE char1024.
DATA: lv_tmp_file TYPE char1024.
lv_tmp = p_up.
CALL FUNCTION 'STRING_REVERSE'
EXPORTING
string = lv_tmp
lang = sy-langu
IMPORTING
rstring = lv_tmp.
SPLIT lv_tmp AT '\' INTO lv_tmp_file lv_tmp.
CALL FUNCTION 'STRING_REVERSE'
EXPORTING
string = lv_tmp_file
lang = sy-langu
IMPORTING
rstring = lv_tmp_file.
lv_upfilename = lv_tmp_file.
* add to zip file.
lo_zip->add( name = lv_upfilename content = lv_content ).
lv_zip_content = lo_zip->save( ).
* Conver the xstring content to binary
CALL FUNCTION 'SCMS_XSTRING_TO_BINARY'
EXPORTING
buffer = lv_zip_content
IMPORTING
output_length = lv_size
TABLES
binary_tab = lt_data.
* download
cl_gui_frontend_services=>gui_download(
EXPORTING
bin_filesize = lv_size
filename = p_down
filetype = 'BIN'
CHANGING
data_tab = lt_data
EXCEPTIONS
OTHERS = 24 ).
Regards,
Rich Heilman
Maybe you are looking for
-
Performance problem in ABAP code
hai guys, I created report using tables like bsis,t001 etc,( tax report). I have performance problem in this report. COuld you pls tell me how to analyse the report and find out the place where process is taking more memory etc. i did abap trace and
-
Hi all we are a MDMP code page system and we upgraded to ECC 6.0. We fixed all our unicode errors by checking the unicode flag in the attributes we activated the program without any syntax errors or warnings. Now when we go back to UCCHECK, it still
-
Help Iphone 5 power button !!
Hi, I got my iphone 5 just before christmas and just recently the power button has stopped working...If i go to an apple store what are the chances of them replacing it or even fixing it ? Thanks
-
Zen Touch problem caused by drive
I bought My Touch back in May 2004, because of its great reputation and awsome battery life. and for the most im pleased with it, but i do have one big problem. When installing the drivers where these are the ones from the Cd or the Newest drivers i
-
HT1600 can you download apps to apple tv
can you buy apps for apple tv like the channels on a roku?