TRANSMIT uploaded pdf corrupt after upload (and download)
i have created a pdf which i uploaded to my website using TRANSMIT and when i download normally, i get the attached error.
this is a file that I created and i think the corruption is due to an upload issue with transmit that they were kind enough to tell me at one point could be fixed by chaning a setting i cannot find ATM.
transmit and transmit support are fantastic but does anyone know where this setting might be while i wait for them to answer? for some reason i cannot find it and it must have been reset when i did a fresh install.
THANKS
that safari (6.0.1) error is /HORRENDOUS/.
this is a no file found error in mozilla and it is because i uploaded to the wrong folder
someone should fix this because it is the second time in about 6 months that i have had the need to fix it and it is only this second time that i figured out what the problem is.
"not supported" or "damaged" is not a helpful prompt in this case and at the very least there should be a location error or a file not found added...
Similar Messages
-
Uploading PDF in to BLOB and Retrieve PDF from BLOB
hi
I have recently started working in apex and run into a bump while trying to handle PDF file Attachments and BLOBs.
I am trying to upload a PDF file into BLOB database Column using APEX, and later view this file from DB.
I require assistance on how to upload PDF file into BLOB, and how i can later view this inside the browser window, using APEX
thanksMaybe this blog post can help you.
Regards,
Sergio -
After uninstalling and downloading the latest Abobe Flash player, I can no lnger play youtube videos. I get the message "blocked plug-in". It works in Firefox, but not Safari?
Frostbitblue,
in Safari’s Preferences, select its Security tab, and make sure that its “Internet plug-ins: Allow Plug-ins” checkbox is checked. -
After purchasing and downloading GarageBand on App Store the software won't start and switch to download over and over the software. It's virtually impossible to reach someone from Apple for support grrrrrrr.... So can someone could kindly give me a clue or solution for this issue?
Thank!
P.S: Could you please send your reply to: [email protected]Have you restarted your computer after installing?
if that does not help, repair the permissions on your system drive using the "First Aid" panel in "Disk Utility" (launch from Application > Utilities)
And if this does not help, reinstall Garageband:
Quit the AppStore.
Move the GarageBand Application to the Trash, but do not empty the Trash.
Reopen the AppSTore and sign in again with the same account you used to buy GarageBand. Now you should be able to download GarageBand again and to reinstall it.
Regards
Léonie -
I got a serial number from Leica. After registered and downloaded LR from adobe, it said “the serial number is invalid”. Anybody knows how this happens?
thanks!Did you get a serial number for Lightroom, or a redemption code?
Please read Find your serial number quickly -
I have a new iphone 5. After update and download some programs I can not just turn it on and shown in the LCD "iTunes" with a picture of a USB cable. - Can anyone help me solve the problem. thanks
Its trying to tell you to connect it by usb to a computer to reflash a failed firmware flash
You should comply -
After renting and downloading a movie do I need an Internet connection
After renting and downloading a movie do I need an Internet connection
Once it's completely downloaded onto your device, you don't need internet to play it.
-
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 -
How to upload pdf file in iphone and how to view
how to upload and how to view pdf file in iphone 5s
Hey saif.antri,
You can view PDFs and more using iBooks on your iPhone:
iBooks: Viewing, syncing, saving, and printing PDFs on iPhone, iPad, and iPod touch
http://support.apple.com/kb/HT4227
Have a great day,
Delgadoh -
Uploading PDF as a MIME and using it as a BSP page
hi BSP gurus,
I have received a requirement where in we have to create a page with static content ( which has a processes with flow chart diagrams, text content and URL etc). User has provided this as a PDF document.
Could anyone suggest if we can directly upload this PDF document as a MIME and use it as a page?
P.S : I was able to upload PDF document as a MIME and create a page with flow logic of type application/pdf.
Please let me know how can I use this PDF to display as a static page. Let me know if there is any other better solution.
Appreciate your response.
Regards,
SameenaHello,
yes you can. Make right-click on your web application and then Create --> MIME object --> import. The file is uploaded into the web application and then you can call it, let´s say, like this:
<htmlb:link id="link1" reference="programming.pdf" text="presiona aqui"/>
Application displays the PDF file. -
Images become corrupted after uploading
Hello i'm trying to make an upload bean that uploads files form client PCs to the server, i'm using jdk 1.4 and tomcat 4.0.
i made a modification to "Budi Kurniawan" code from "http://www.onjava.com/pub/a/onjava/2001/04/05/upload.html"
and the package is working very well only with text files.
when i tried to upload images or exe . i found the files corrupted. i compaired the original files with the uploaded one and they was the same in size.
i think the problem is with the way i process the content type of the file.
please if u have any ideas to modify this code to enable it to upload images and exe please post ur reply.
the package name is "michael.web.upload" this package should be able to handle a form with mulitble input types and mulitble files to upload at one time
the package contain two classes "FileUpload" provides some info about the uploaded file and "MultiPartParser" the parser that do the upload
File Upload Class
package michael.web.upload;
* <p>Title: </p>
* <p>Description: </p>
* <p>Copyright: Copyright (c) 2005</p>
* <p>Company: </p>
* @author Michael Ageeb
* @version 1.0
public class FileUpload {
public static final int SAVE_NAME = 0;
public static final int PARAM_NAME = 1;
public static final int FILE_NAME = 2;
public static final int ERROR_FREE = 3;
public static final int ERROR_IO = 4;
public static final int ERROR_MAXSIZE = 5;
private String fileName, savePath, paramName, saveName, MIMEType;
private long size, maxSize;
private int saveNameMethod, errorCode;
private Throwable th;
public FileUpload(String paramName, String savePath) {
size = 0;
maxSize = Long.MAX_VALUE;
this.paramName = paramName;
this.savePath = savePath;
saveName = null;
fileName = null;
saveNameMethod = FILE_NAME;
errorCode = ERROR_FREE;
th = null;
this.MIMEType = "text/plain";
void setMIMEType(String mime) {
this.MIMEType = mime;
public String getMIMEType() {
return this.MIMEType;
void setThrowable(Throwable th) {
this.th = th;
public Throwable getThrowable() {
return this.th;
public void setSaveNameMethod(int sn) {
if (sn < 0 || sn > 2)return;
saveNameMethod = sn;
public int getSaveNameMethod() {
return this.saveNameMethod;
void setErrorCode(int ec) {
if (ec < 3 || ec > 5)return;
this.errorCode = ec;
public int getErrorCode() {
return errorCode;
public String getFileName() {
return fileName;
public long getMaxSize() {
return maxSize;
public void setMaxSize(long maxSize) {
if (maxSize < 0)return;
this.maxSize = maxSize;
public long getSize() {
return size;
public void setSavePath(String savePath) {
this.savePath = savePath;
public String getSavePath() {
return savePath;
public String getSaveName() {
switch (this.saveNameMethod) {
case FILE_NAME:
return this.fileName;
case PARAM_NAME:
return this.paramName;
case SAVE_NAME:
return this.saveName != null ? this.saveName : this.fileName;
return null;
public void setSaveName(String saveName) {
this.saveName = saveName;
public String getParamName() {
return paramName;
void setFileName(String fileName) {
this.fileName = fileName;
void setSize(long size){
this.size=size;
}MultiPartParser Class
package michael.web.upload;
import java.io.*;
import javax.servlet.*;
import javax.servlet.http.*;
import java.util.*;
* <p>Title: </p>
* <p>Description: </p>
* <p>Copyright: Copyright (c) 2005</p>
* <p>Company: </p>
* @author Michael Ageeb
* @version 1.0
public class MultiPartParser {
private Hashtable fields;
private Hashtable files;
private String defSavePath;
private LinkedList parameters;
public MultiPartParser(String savePath) {
this.defSavePath = savePath;
parameters = new LinkedList();
fields = new Hashtable();
files = new Hashtable();
public void addFileUpload(FileUpload fu) {
files.put(fu.getParamName(), fu);
public FileUpload getFileUpload(String param) {
return (FileUpload) files.get(param);
public Enumeration getFilesNames() {
return files.keys();
public Enumeration getFieldsNames() {
return fields.keys();
public Enumeration getPatameterNames() {
return Collections.enumeration(parameters);
boolean addParameter(String param) {
if (parameters.contains(param))return false;
parameters.addLast(param);
return true;
public String getField(String param) {
ArrayList arr = (ArrayList) fields.get(param);
if (arr == null)return null;
return (String) arr.get(0);
public String[] getFieldValues(String param) {
ArrayList arr = (ArrayList) fields.get(param);
if (arr == null)return null;
String a[] = new String[arr.size()];
for (int i = 0; i < a.length; i++) a[i] = (String) arr.get(i);
return a;
private String getFilename(String s) {
int pos = s.indexOf("filename=\"");
String filepath = s.substring(pos + 10, s.length() - 1);
// Windows browsers include the full path on the client
// But Linux/Unix and Mac browsers only send the filename
// test if this is from a Windows browser
pos = filepath.lastIndexOf("\\");
if (pos != -1)
return filepath.substring(pos + 1);
else
return filepath;
private String getContentType(String s) {
int pos = s.indexOf(": ");
return s.substring(pos + 2, s.length());
public void parse(HttpServletRequest request) throws IOException {
ServletInputStream in = request.getInputStream();
byte[] line = new byte[128];
int i = in.readLine(line, 0, 128);
if (i < 3)
return;
int boundaryLength = i - 2;
String boundary = new String(line, 0, boundaryLength); //-2 discards the newline character
while (i != -1) {
String newLine = new String(line, 0, i);
if (newLine.startsWith("Content-Disposition: form-data; name=\"")) {
if (newLine.indexOf("filename=\"") != -1) {
int pos = newLine.indexOf("name=\"");
String paramName = newLine.substring(pos + 6,
newLine.indexOf("name=\"",
pos + 6));
FileUpload fu;
if (files.contains(paramName)) fu = (FileUpload) files.get(paramName);
else {
fu = new FileUpload(paramName, defSavePath);
files.put(paramName, fu);
addParameter(paramName);
fu.setFileName(getFilename(new String(line, 0, i - 2)));
//this is the file content
i = in.readLine(line, 0, 128);
fu.setMIMEType(getContentType(new String(line, 0, i - 2)));
i = in.readLine(line, 0, 128);
// blank line
i = in.readLine(line, 0, 128);
newLine = new String(line, 0, i);
ByteArrayOutputStream pw = new ByteArrayOutputStream();
// FileOutputStream pw=new FileOutputStream((fu.getSavePath() == null ? "" : fu.getSavePath()) +
// fu.getSaveName());
long count = 0;
while (i != -1 && !newLine.startsWith(boundary) &&
count <= fu.getMaxSize()) {
// the problem is the last line of the file content
// contains the new line character.
// So, we need to check if the current line is
// the last line.
i = in.readLine(line, 0, 128);
if ( (i == boundaryLength + 2 || i == boundaryLength + 4) // + 4 is eof
&& (new String(line, 0, i).startsWith(boundary))) {
pw.write(newLine.getBytes(), 0, newLine.length() - 2);
count += newLine.length() - 2;
else {
pw.write(newLine.getBytes(), 0, newLine.length());
count += newLine.length();
newLine = new String(line, 0, i);
pw.close();
RandomAccessFile rf = new RandomAccessFile( (fu.getSavePath() == null ?
"" : fu.getSavePath()) + fu.getSaveName(), "rw");
byte[] bytes = pw.toByteArray();
rf.write(bytes, 0, bytes.length);
rf.close();
if (count > fu.getMaxSize()) {
File f = new File( (fu.getSavePath() == null ? "" : fu.getSavePath()) +
fu.getSaveName());
f.delete();
fu.setErrorCode(FileUpload.ERROR_MAXSIZE);
else {
fu.setSize(count);
else {
//this is a field
// get the field name
int pos = newLine.indexOf("name=\"");
String fieldName = newLine.substring(pos + 6, newLine.length() - 3);
//System.out.println("fieldName:" + fieldName);
// blank line
i = in.readLine(line, 0, 128);
i = in.readLine(line, 0, 128);
newLine = new String(line, 0, i);
StringBuffer fieldValue = new StringBuffer(128);
while (i != -1 && !newLine.startsWith(boundary)) {
// The last line of the field
// contains the new line character.
// So, we need to check if the current line is
// the last line.
i = in.readLine(line, 0, 128);
if ( (i == boundaryLength + 2 || i == boundaryLength + 4) // + 4 is eof
&& (new String(line, 0, i).startsWith(boundary)))
fieldValue.append(newLine.substring(0, newLine.length() - 2));
else
fieldValue.append(newLine);
newLine = new String(line, 0, i);
//System.out.println("fieldValue:" + fieldValue.toString());
if (addParameter(fieldName)) {
ArrayList arr = new ArrayList();
arr.add(fieldValue.toString());
fields.put(fieldName, arr);
else {
( (ArrayList) fields.get(fieldName)).add(fieldValue.toString());
i = in.readLine(line, 0, 128);
} // end while
}All what you want to do in ur jsp page and u will find the files in ur C:/
<%@ page import="michael.web.upload.*" %>
<%
MultiPartParser parser=new MultiPartParser("C:/");
parser.parse(request);
%>Hellooooooooooo,
Could anybody post a code that is able to upload images. (i mean raw code without using fancy controlos) -
Problems uploading big files via FTP and downloading files
I've been having problems uploading big files like video files (.mov 12MB) via FTP to my website (small files like .html or .doc I can upload but it takes longer than usual). I'm using Fetch 4.0.3. as FTP. Same problems when downloading files via Bit Torrent. I recently moved to Spain, since then I seem to have the problem. But my roommate with a PC doesn't have that problem. Connecting to internet with Ethernet cable also didn't resolve the problem. I also tested it from a Starbucks coffee connecting to Internet from there but still couldn't upload that 12MB file to the FTP. The security settings for firewall are set to "allow all incoming connections". I didn't change any of my settings so I don't know what the problems could be. I have a MacBook Pro, Mac OS X (10.5.7) Any suggestions? Thanks!
Welcome to Apple Discussions!
Much of what is available on Bittorrent is not legal, beta, or improperly labelled versions. If you want public domain software, see my FAQ*:
http://www.macmaps.com/macosxnative.html#NATIVE
for search engines of legitimate public domain sites.
http://www.rbrowser.com/ has a light mode that supports binary without SSH security.
http://rsug.itd.umich.edu/software/fugu/ has ssh secure FTP.
Both I find are quick and a lot more reliable than Fetch. I know Fetch used to be the staple FTP program, but it grew too big for my use.
- * Links to my pages may give me compensation. -
Can't view pdf docs after uploading adobe 10
just downloaded adobe 10 update. now my pdf files do not appear if viewing from firefox browser
I am very glad to have a so rapid answered!
Sorry I was not precise...
When the file should open,
for one application an error is happening,
for the other application which is a "web" application, an other window ( not "web") opens with adobe reader and the pdf document ( the expected behavior is to open adobe reader and the pdf file in the web window already opened)
I think that the file association is ok, if we double clik on a pdf, adobe reader is opening and then the file is opening in adobe reader window...
If I open Internet Explorer and I search for a pdf on the web, It is openning in the same window web.
But something seems not finish for the medical softwares... -
Corrupt Software Updates and Downloads
Sorry if there is already an answer floating around for this, but I have not been able to find it.
Whenever I try to download and install updates from Software Update, during the installation process I get an error message saying that all of the downloaded updates are corrupted. Sometimes after downloading updates for Logic and iLife 10 to 15 times, the update will finally install, but the combined update to 10.6.4 never installs and the same thing also applies to iPhone updates via iTunes and occasionally a rar, zip, or dmg file. Is there an fix for this? Thanks in advance!iPhone software updates through iTunes always give me an error that says they are corrupted, and occasionally a dmg or rar file will be corrupted (like 1 in 10), but apps and music downloaded through iTunes always download fine.
-
I just purchased the Acrobat XI Pro Subscription online. After downloading the software and receiving the message that the installation was complete I tried to open the software to no avail. It starts to open with a "please wait while we launch Acrobat..." screen, then I get an error message "Acrobat Quit Unexpectedly" with options to Ignor, Report, or Reopen. I've sent the report, but no matter how many times I try the 'Reopen' or 'Ignore' options the software will not open. I'm running a MacBook Pro with Mac OS X version 10.7.5.
Any suggestions on how to get the software to work. I've tried uninstalling and reinstalling to no avail.
Any help would be appreciated.Hi Ron,
Please try the steps below and let me know if it worked for you.
Delete all the files from following folders:
[Home]/Library/Application Support/Adobe/SLStore
[Home]/Library/Application Support/Adobe/SLCache
And, delete all files from following folder except cache.db
[Home]/Library/Application Support/Adobe/AdobePCD
Then launch Acrobat and try to activate and check.
Regards,
Rave
Maybe you are looking for
-
Discoverer and oracle application link
Hi I am new to discoverer , i have created a discoverer report and wanted to link to oracle applications.. i have followed the steps given below pls do correct me where ever i went wrong at last i was not able to succeed in linking to oracle apps. pl
-
XSLT transformation for Single XML Output
I want to save a book to a single XML document. Is it correct that I can do this by adding an xslt to merge the standard framemaker entity type output ? Can I easily reconfigure the standard Save As XML to acheive this? or do I need to add a new menu
-
HELP!! Can't view canvas on tv
I am using FCP 7 on a 27" IMAC. I connected my tv to the IMAC via the mini displayport and using the correct mini displayport to hdmi connection. I want to view the canvas on the computer AND tv but I can't figure out how to do it??? The tv shows co
-
My Apple TV 2 was slowing down when I was streaming itunes radio. The folks at my local Mac Store suggested doing a restore. I tried this and it won't restore when I hook it up to itunes. Get a message saying an "...unknown error has occurred". Now w
-
How to change the stageVideo depth?
hi i have implemented the stage video in my project. it is working perfectly, i was attached at the 0 depth. how to change the depth of the stage video. any help pls thanks ayathas