Simple Image Upload Problem
Our users may add a logo to their content area. The logo is added as a file, and accessed from other pages using the technique described in the "Direct Access URL" online help.
The portal defeats this strategy, however, since the direct access URL changes each time the item is modified. I can see exactly what is happening in wwv_things, and it's disturbing since it occurs whether one edits or one removes and replaces the item.
What is the supported technique for accessing a folder item by name when the item name remains stable, but the file being accessed should change?
Hi smith,
Thanks for your reply.
Some one told me to do something like this. I am getting square with red X. I have the images folder with code.gif file with in the ImageExample Class.
import java.io.*;
import javax.servlet.*;
import javax.servlet.http.*;
import java.sql.*;
import javax.servlet.ServletException;
public class ImageExample extends HttpServlet{
public void doGet(HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException{
res.setContentType("image/gif");
PrintWriter pw = res.getWriter();
pw.println("<html>");
pw.println("<body>");
pw.println("<img src=\"/images/code.gif\">");
pw.println("</body>");
pw.println("</html>");
pw.close();
Similar Messages
-
Multiple image upload CRASH!!! but works with simple image upload
I'm getting MAD.
I'm using php and GD
While the simple image and re size works like a charm, the multiple image upload or the multiple file upload have a strange behavior.
It opens the pop-up with flash, then eventually shows me files or thumbnails but when I try to up load I just wait and get the typical "system becoming unstable" flash error.
As I can see the directory is always generated (I've tried also to put a static directory) but after stargin the upload the flash uploader just crashes and no result.
Any help would be really appreciatedHi Fonzie,
as the folder is getting created, the issue you´re having is not related to wrong folder permission - it´s something else...
As I wrote before, che common upload and resize function works perfectly
this one works perfectly, because it´s just one file to upload and to process, wheras doing that with multiple files might collide with some settings on your server
So for sure it's not a simple issue as the max filesize
Are you sure ? Did you check the current "max_upload_filesize" setting ? As long you don´t check it, you can´t know :-)
As a general rule of thumb, it´s important to be aware of the fact that uploading & resizing images on the server might collide with several PHP settings -- and the more images you upload and resize in one swoop, the closer you´re getting to these limits respectively might even be exceeding them. The following "directives" are those which have an effect on whether your image/file upload & processing will work or not:
- "max_upload_filesize" :: is sometimes set to just 8 MB on a shared hosting, sometimes 16 MB, sometimes more. This setting will affect the file upload procedure only
- "set_time_limit" (e.g. 30 seconds) :: if the execution time of a script exceeds this limit for whatever reason, the server simply shuts it down without letting you (respectively the flash uploader) know it´s been shut down. This *might* be the reason why ADDT´s flash uploader hangs respectively returns that error message after some time, because it´s waiting for some response from the server which never comes.
- "memory_limit" (e.g. 8 MB) :: this directive is a sort of "allocated server RAM" for your account, and it´s in particular the image resizing process which will grab more or less memory resources -- the higher the the resizing factor is, the more RAM is spent, and the more images are getting resized in one swoop, the worser it gets.
However, all these PHP directives can be changed, and your host might even be so courteous to increase the currently defined values of those abovementioned directives for you -- and that´s what I´m suggesting at this point.
Cheers
Günter Schenk
Adobe Community Expert, Dreamweaver -
Today, on two occasions I've gotten an error trying to upload an image from my local hard drive to a thread. Normally this has been working in IE9 for me, and in fact I've uploaded a number of images today successfully. It happened once with a PNG and once with a JPEG The reported problem, in the dialog the software puts up, was simply "Null".
Any number of retries to upload the same or different image results in the same failure.
I'm going to try uploading one of the very same images that failed before here. If it fails, I'll capture the screen and upload it to my site, then post a link here. If it succeeds, well, you'll just have to trust me that it happened.
Bah, of course it succeeds when trying to reproduce a failure.
Anyone else seeing image upload failures today?
-NoelLikewise, I usually put up a lot of images.
Here are several, just as a test and so this thread isn't completely filled with just all this boring old text...
PNG:
JPEG:
GIF:
Image insertion seems to work fine today. The full moon WAS last night, after all...
-Noel -
When trying to use the Multiple Image Upload feature I get this error
A script in this movie is causing Flash Player 9 to run slowly, if it continues your computer may become unresponsive. Do you want to abort the script?
This message pops up after a single file is uploaded, the second bar labeled progress remains at 0%.
I have experimented with this all day with no luck, any help would be great...
Forgot to mention, PHP/MYSQL
Also happens if I try multiple file upload vs. image.
I can't tell if it's ADDT or Flash, hopefully since they are both adobe someone can figure it out.
Thanks in advance...Thanks for the reply, in this case it was a server setting that had to be modified. Mod_security would not allow folder creation by Apache. The single up loadd worked fine because it did not have to write a directory.
It did not show up in the server logs for some reason.
Hope this saves someone hours of trouble shooting. -
Flash simple image gallery problem
Hello I have what I think is an easy problem to solve but I
can´t find a solution.
I´m creating an image gallery with thumbnails on the
right inside a symbol so that
they can all fade in at the same time, and the bigger images
on the left that also fade in.
I can only fit 8 thumbnail images at a time, and want to have
more than that.
So I´ll add an arrow below the thumbs so that when you
click on it, you can see the other thumbs.
I have the first 8 thumbs on the first frame of a symbol and
the rest on the second frame.
My problem is that the symbol that contains the thumbs is a
graphic symbol, so that the thumbs in it, that are button symbols
can be clicked on. I tried using button and movie clip symbols for
the thumbnails container but then the buttons (thumbs) can´t
be clicked any more.
That was not a problem till I had to add more than 8 thumbs,
cause i need to give the container an instance name, and graphic
symbols can´t have one.
Here is the link to download the .fla
www.ginkgo.com.uy/old/downloads/handheld_pink.fla
In case I didn´t make my self clear, what I need is to
know if there´s a way to have a movie clip or button symbol
that can have buttons in it that can be clicked on.
I hope I didn´t give you a headache.
Thanks a lot, Marcelo.thanks.
that´s what i thought but, if i convert the container to
a button symbol the thumbs can´t be clicked anymore.
And if I convert the container to a movie clip like you
suggested, then if I click on any part of the container it
just goes to the second frame of the movie clip container, if
i click again it goes back to the first frame and so on.
But there is no action script for the container at all,
please try it out with the fla i uploaded.
i can´t figure it out.
thanks -
IGS COnverted BMP Image upload problem in SE78
HI Friends,
I Converted the JPEG image into BMP ormat by using IGS. It is converting properly. i am able to see the BMP image. When i am trying to upload it through the SE78 i am getting the short dump.
If convert it manually, i am able to upload the image. i did not get the any difference between these two including file size, width and height.
I attached the shortdump and converted image file as an attachment. Can anyone give me inputs where i am missing the target.
Runtime error : COMPUTE_INT_TIMES_OVERFLOW
Exception : CX_SY_ARITHMETIC_OVERFLOW
Thanks ,
Srinivas BhavanamHi Oisin,
Sorry for the Late Reply. I am using IGS 6.40 with solaris system.
If i am converting the image from my desktop i am getting 96DPI resolution. Where as if i am doing it from IGS i am getting 30682172 DPI resolution.
I am using SAP 4.7. Is it the latest patch level or latest IGS supported.
Short Dump :
Runtime Error COMPUTE_INT_TIMES_OVERFLOW
Exception CX_SY_ARITHMETIC_OVERFLOW
Occurred on 03.03.2010 at 11:04:30
Whole number overflow on multiplication.
What happened?
Error in ABAP application program.
The current ABAP program "SAPLSTXBITMAPS" had to be terminated because one of
the
statements could not be executed.
This is probably due to an error in the ABAP program.
What can you do?
Print out the error message (using the "Print" function)
and make a note of the actions and input that caused the
error.
To resolve the problem, contact your SAP system administrator.
You can use transaction ST22 (ABAP Dump Analysis) to view and administer
termination messages, especially those beyond their normal deletion
date.
Error analysis
An exception occurred. This exception is dealt with in more detail below
. The exception, which is assigned to the class 'CX_SY_ARITHMETIC_OVERFLOW',
was neither
caught nor passed along using a RAISING clause, in the procedure
"FILL_BMFILE_FROM_BMP" "(FORM)"
Since the caller of the procedure could not have expected this exception
to occur, the running program was terminated.
The reason for the exception is:
In the current program "SAPLSTXBITMAPS", multiplying the numbers 1207959552 and
100 (using the operation * or 'MULTIPLY') resulted in a value
greater than 2147483647 or smaller than -2147483648. This
results in a whole number overflow.
How to correct the error
The exception must either be prevented, caught within the procedure
"FILL_BMFILE_FROM_BMP"
"(FORM)", or declared in the procedure's RAISING clause.
To prevent the exception, note the following:
You may be able to split the process into separate components, so that
the values generated are smaller.
If the error occurred in one of your own programs or in an SAP program
that you modified, try to correct it yourself.
If you cannot solve the problem yourself, please send the
following documents to SAP:
1. A hard copy print describing the problem.
To obtain this, select the "Print" function on the current screen.
2. A suitable hardcopy prinout of the system log.
To obtain this, call the system log with Transaction SM21
and select the "Print" function to print out the relevant
part.
3. If the programs are your own programs or modified SAP programs,
supply the source code.
To do this, you can either use the "PRINT" command in the editor or
print the programs using the report RSINCL00.
4. Details regarding the conditions under which the error occurred
or which actions and input led to the error.
System environment
SAP Release.............. "620"
Application server....... "EWR0R3DEV002"
Network address.......... "10.20.32.13"
Operating system......... "SunOS"
Release.................. "5.9"
Hardware type............ "sun4u"
Character length......... 16 Bits
Pointer length........... 64 Bits
Work process number...... 0
Short dump setting....... "full"
Database server.......... "EWR0R3DEV002"
Database type............ "ORACLE"
Database name............ "I07"
Database owner........... "SAPRGG"
Character set............ "C"
SAP kernel............... "640"
Created on............... "Mar 9 2009 21:04:19"
Created in............... "SunOS 5.8 Generic_117350-38 sun4u"
Database version......... "OCI_920 "
Patch level.............. "274"
Patch text............... " "
Supported environment....
Database................. "ORACLE 9.2.0.., ORACLE 10.1.0.., ORACLE
10.2.0.."
SAP database version..... "640"
Operating system......... "SunOS 5.8, SunOS 5.9, SunOS 5.10"
User, transaction...
Client.............. 999
User................ "SREDDY"
Language key........ "E"
Transaction......... "SE78 "
Program............. "SAPLSTXBITMAPS"
Screen.............. "SAPLSTXBITMAPS 4001"
Screen line......... 8
Information on where terminated
The termination occurred in the ABAP program "SAPLSTXBITMAPS" in
"FILL_BMFILE_FROM_BMP".
The main program was "SAPMSSCH ".
The termination occurred in line 1959 of the source code of the (Include)
program "LSTXBITMAPSF03"
of the source code of program "LSTXBITMAPSF03" (when calling the editor 19590).
Processing was terminated because the exception "CX_SY_ARITHMETIC_OVERFLOW"
occurred in the
procedure "FILL_BMFILE_FROM_BMP" "(FORM)" but was not handled locally, not
declared in the
RAISING clause of the procedure.
The procedure is in the program "SAPLSTXBITMAPS ". Its source code starts in
line 1843
of the (Include) program "LSTXBITMAPSF03 ".
Source code extract
019290 endcase.
019300 * compression
019310 perform bmptab_getdword_ofs tables bitmap_file
019320 using ofs bmp_compression.
019330 case bmp_compression.
019340 when c_bmp_compr_rgb. "BI_RGB, uncompressed
019350 when c_bmp_compr_rle8. "BI_RLE8, 256 colors colormap, rle encoding
019360 when c_bmp_compr_rle4. "BI_RLE8, 16 colors colormap, rle encoding
019370 when others. message e872 raising bmperr_unsup_compression.
019380 endcase.
019390 * size of image
019400 perform bmptab_getdword_ofs tables bitmap_file
019410 using ofs bmp_sizeimage.
019420 * pix per meter X
019430 perform bmptab_getlong_ofs tables bitmap_file
019440 using ofs bmp_xpelspermeter.
019450 * pix per meter Y
019460 perform bmptab_getlong_ofs tables bitmap_file
019470 using ofs bmp_ypelspermeter.
019480 * colors used
019490 perform bmptab_getdword_ofs tables bitmap_file
019500 using ofs word.
019510 * colors important
019520 perform bmptab_getdword_ofs tables bitmap_file
019530 using ofs word.
019540 ofs_rgbquad = ofs_bitmapinfoheader + bmp_bisize.
019550 * now we have OFS_RGBQUAD -> color table
019560 * OFS_BITMAPDATA -> bitmap bytes
019570 otf_bminfo-new_rd_format = c_false.
019580 otf_bminfo-is_resident = c_false.
> otf_bminfo-dpi = ( bmp_xpelspermeter * 100 ) / 3937.
019600 perform bmp_adjust_dpi using otf_bminfo-dpi.
019610 otf_bminfo-w_pix = bmp_width.
019620 otf_bminfo-h_pix = abs( bmp_height ).
019630 otf_bminfo-w_tw = ( 1440 * otf_bminfo-w_pix ) / otf_bminfo-dpi.
019640 otf_bminfo-h_tw = ( 1440 * otf_bminfo-h_pix ) / otf_bminfo-dpi.
019650 case bmp_bitcount.
019660 when 1.
019670 otf_bminfo-bitsperpix = 1.
019680 otf_bminfo-bytes_per_row = otf_bminfo-w_pix div 8.
019690 rest = otf_bminfo-w_pix mod 8.
019700 when 4.
019710 otf_bminfo-bitsperpix = 4.
019720 otf_bminfo-bytes_per_row = otf_bminfo-w_pix div 2.
019730 rest = otf_bminfo-w_pix mod 2.
019740 when 8.
019750 otf_bminfo-bitsperpix = 8.
019760 otf_bminfo-bytes_per_row = otf_bminfo-w_pix.
019770 rest = 0.
019780 when 24.
Thanks & Regards,
Srinivas Bhavanam -
Hi To All
I am developing one employee application. in this, The employee has to register with my application. He has to provide all his details. And finally he has to upload jpeg/gif/png format picture. Everything is working good. But the problem is, the image size. When ever the user clicks on his profile, the image should be displayed. I don't know how to upload an image into database with fixed size. if that image is big, then it has to compress to my specified height and width.
If anyone knows this application, please help me. i am very thankful to you. Thanks in advance.you'll need to first resize the thing yourself before storing it. No database is going to do that for you (though possibly it might be possible to write a stored procedure or trigger to do it for some database engines, but you'd still need to write that code).
-
Multiple Image upload problem in IOS
In my Application, I have to upload multiple pictures and I have used file upload control. Application is working fine in IE Browser, Safari (on Windows) and other browsers, but getting problem with the Safari (IOS), After uploading the second pictures, first pictures gets replaced by the new one. This seems to problem only with mobile safari ( on IPAD, IPHONE with IOS 6.1). I have used the standard code <input type=file accept="image/*">.
The flow is like, user will upload 4 pictures and then will hit the save button, but as I upload the another pictures, the other pictures gets refreshed and latest uploaded image is shown in All fields. But on Server correct file is uploaded. Can anyone help me on this Problem?Apparently the problem is with the host. According to the
host I was trying to install this on, there is a security issue
with Flash upload programs and they don't allow them. So I tried a
different host (Jodohost) and it worked. -
Revised --Image Upload--- Problem??
Hi again,
I'm posting a revised question, maybe that clarifies better.
We have a running Portal 3.0.7 with the default settings. We may upload any image (checked in WWDOC_DOCUMENT table), but the image files may not be shown in the portal(banner image, user picture..) Instead, on the related portal page a null image is shown.
It seems there is a configuration error?? To where I should look for it?
Ferhat
nullJust to clarify. You are adding images in the various edit wizards (e.g. in the edit banner wizard there is a field for the banner image) and these images get loaded, but not displayed. Is that correct?
-
Simple image placement problem
I just recnetly upgraded to Dreamweaver 8 and have a crazy
problem that I don't understand. I'm unable to add picutres
side-by-side. I don't quite understand what is happenening but when
I try and add two images side by side it forces the other down
below it. It doesn't matter how much space is availble or the size
of the images. Right now I'm having to create tables to place them
into but I think that is a terrible solution and I never had this
issue with MX.
Any help would be greatly appreciated.
Jason<title>template1_2_02 copy.jpg</title>
<meta http-equiv="Content-Type" content="text/html;
charset=utf-8" />
<style type="text/css">td img {display:
block;}</style>
Reckon that could be a factor in not being able to place them
horizontally
adjacent?
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.dreamweavermx-templates.com
- Template Triage!
http://www.projectseven.com/go
- DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs,
Tutorials & Resources
http://www.macromedia.com/support/search/
- Macromedia (MM) Technotes
==================
"jaysyn" <[email protected]> wrote in
message
news:e79eej$s07$[email protected]..
>
quote:
Originally posted by:
Newsgroup User
> It's hard to say without seeing your page. Can you show
us the code?
>
>
> Here is a webpage I threw on the net real quick.
> I create webpages by creating the template in Photoshop,
slicing it in
> fireworks and then finishing it in Dreamweaver. Using
the CS2 and Studio 8
> software.
>
> I noticed that if I just create a blank page in DW I can
set them
> side-by-side
> but not after I bring in a page from fireworks. Like I
said this process
> has
> never givene me this problem with v7 so any help would
be appreciated.
>
>
http://design.archerworks.com/images.htm
<< it isn't clean right now kind
> of
> just thrown out there for this example.
>
> Thanks,
> Jason
>
>
> -
[locked] Image Upload Problem
Forum Admin:
FYI when attempting to change my profile pic this morning; It either errors out with this "The uploaded file could not be read as an image." or, just times out. Happens in the profile area and when attempting to attach an image to a post. Tried in both Google Chrome and Internet Explorer 8.S.D.A. wrote:
I would but the term 'seamonkey' is derogatory. It hurts the feelings of
chimps like me, and I dislike Opera. Rock 'n Roll or Dancin music for me !
Steve... don't get hassled... you're not a 'seamonkey' you're a 'land' monkey. Totally different... It's like comparing seahorses and horses. So, don't worry about it. -
Sometimes when we upload an image, the page tries to reload and wants us
to download the PHP file itself. There is an error in the upload
routine. I need to manually delete the record from the database before I
can open the page again. Sound familiar to anyone?
Alec
Adobe Community ExpertSeems to be related to the image dimensions. When one side approaches
2070px, the error occurs. For example, with one image, 2072x1378 uploads
fine, but 2073x1379 does not. With a different image 2071x1056 works
fine, but 2072x1057 does not. These are 8-bit JPGs.
Alec
Adobe Community Expert -
Problem in Image uploading through a view -- URGENT
Hii Experts,
I am facing very strange problem while uploading a image file (.JPG file) thru a web dynpro view.
I am accepting a image file from view and uploading it to a ftp server.
There are two abnormal results I have observed. It does NOT happen for every image upload. But it has been observed to happen during peak Internet hrs. (image size can range from 1MB to 7-8 MBs)
When 'Upload' button is clicked, one of the following thing happens:-
1. After taking loooong time (processing circle rotates), browser screen goes totally blank. That is, browser goes into state as if no page is opened (white screen)
2. After taking loooong time, empty form re-appears. ( ie the view in which i had submitted data and pressed 'Upload')
I have tried tracing errors in default trace. but no error or exception is displayed !!!
Following is the code i'm using for uploading file. ==>
try {
URL myUrl = new URL("ftp://<some address>");
FtpURLConnection myConnection = new FtpURLConnection(myUrl);
myConnection.connect();
OutputStream out = myConnection.getOutputStream();
out.write(wdContext.currentPhotosElement().getPhoto1());
out.close();
myConnection.close();
} catch (Exception e) {
System.err.println("\n\n$$$$$$$$$$$$$Exception in image upload $$$$$$$$$$$$$\n\n");
e.printStackTrace();
Please help me as this system is live and lot of users are complaining as they are not able to upload their images..
Awaiting for reply ..
regards,
Amey
Edited by: Amey Mogare on May 28, 2008 2:14 PM
Edited by: Amey Mogare on May 28, 2008 2:17 PMIn SE78 when we click on the graphics and then click on the BMAP ( Bitmap Images ) then the bdc is not cathcing the screen and its giving an error
This is the error message which i am recieving in it .
00 343 S Cursor field RSTXT-TDNAME . does not exist in the screen
Please suggest me that is there any way for the same or else is there any BAPI for the same .
Regards
Shankar -
Multiple image upload with save to database problem
I am developing some backend work for a client, and we recently used the Multiple image upload with save to database wizard without a problem. A few days later, we noticed that we could only upload a single file at a time - it seems that the coding is no longer able to access the flash part of this and is using the javasript function instead. I know the web hosting company has made some changes on the server, and I did some reearch and it seems that there could be an issue with Flash 10, but has anyone else experienced anything like this? Any help is greatly appreciated.
Thanks.
JeremyThank you for the responses. I have already updated awhile ago, so I am wondering what happened. Not sure if during the server update, some files were replaced (unless I totally forgot to update to 1.0.1 on this site). So I reinstalled 1.0.1, deleted the includes folder from the server and uploaded my includes folder and it now works again.
Again, thanks for the help.
Jeremy -
Problem w/saving simple image as .png
Hello: Level: Newbie'ish OS: Win7 64bit PS: CS6
I have been making a simple image of a 300 by 100 rounded rectangle and then adding various layer styles. Basically I am makeing mobile headers which will be used for mobile websites.
Today I was reviewing a few that I have made and noticed that when I open them in their .png format and then create a selection around one (Ctrl + Click) that the lower right coner is not being selected as rounded but as a point and so when I copy and then paste it into a new document it has three rounded corners and one somewhat visible pointed corner. ?? ??
The file has a BG layer and two shape layers (or sometimes just one shape layer). I select the layers and then merge them together and turn off the BG layer beofore I save them for the web. I have also tried just saving the file as a .png w/out merging the layers but no matter how I go about saving the file(s) most of the time one corner is saved w/that annoying and imperfect sharp corner.
Any ideas? Your time is greatly appreciated ~ Thanx a Bunch!!Hey c.pf...
sorry for just getting back ~ the holiday season has me run'n Crazy.
any way, i figured out my problem. i hadn't realized that i accidentally clicked the outer glow option and it was so faint that i couldn't see it all that well or actually ~ at all until i went back through the LS ...
so, when i would save the image (mobile header) it was including or making room for the outer glow
funny how something so simple can be overlooked.
well, sorry for bothering ya over nothing ~ but i really appreciate your willingness to help me out
hope all is well!! thanx again!
Maybe you are looking for
-
T520 poor performanc​e and SpeedStep problem
Hi to all the users in the forum! I'm new to this forum and I would like to thanks for any future help that you'll give me. After some months of using my new T520 (i7 2620m) I was really disappointed for the poor performance of this ThinkPad. Briefly
-
How can I promote my book in the ibook store?
Hello, I recently submitted an Ibook for review which got accepted but would like to know what would the requirements be to promote the book in the iBook Store and what assets would I need? Thanks Basil
-
Hi Experts, I have a SC where the workflow went to Workflow Adminstrator... I don't know where exactly to search what happend... can any one of you could help me in this case Appreciated your answers Points will be rewarded rg sam
-
Re: Incoming Call notifications nonexistent since ...
Ever since you updated last summer I have not been able to download because it says my mac operating system is not current yet I paid for unlimited calls to US & Canada for the year and can't even do that. I can't do Skype to Skype either nor can I
-
Hi, We are sending half of the invoices as INVOIC01-idoc from R/3 to XI and they should be converted and sent to one server. In R/3 we have partner profile (KU) for all customers. When we process the invoices they seem to go nicely to XI. But when XI