This topic is locked
[SOLVED]

 Image size

2/1/2007 7:34:01 PM
ASPRunnerPro General questions
J
Joseph Zuanger author

version 4.1
Can not make thumnail images. In the visual editor, I set size of the image to display in the image field of ....add.asp. I have checked the view.asp and list.asp and the image size was set to what I want. But when it is displayed, the full size shows. Did I do something wrong? Any help is appreciated.

Thanks!
Joe

Admin 2/2/2007

Joe,
thumbnails are only created when you upload image via ASP pages and ASPJpeg component is installed on your web server.

Make sure this is the case.

J
Joseph Zuanger author 2/2/2007

Thanks!

Figured the problem. I was testing on my personal web server and no AspJpeg component. Uploaded to the web server, it is fine.

Joe

D
dunga 2/19/2007

Dear joseph could you please help in teaching how did you do that?

step by step?
I also have now aspjpeg component installed, but either small or big images are generated..
thank you

Admin 2/19/2007

Dunga,
you can get better help if you explain what are your settings and what doesn't work as expected.

D
dunga 2/19/2007

give me just about 1 hour to upload all my screenshots.

D
dunga 2/19/2007
D
dunga 2/19/2007

also if possible, let me know where the images are stored?

I tried right click and save an image, and got weird error
800700de

Admin 2/20/2007

Dunga,
there is nothing on the page you sent me.

D
dunga 2/20/2007

http://www.freewebtown.com/dunga/gobustan/...e/database.html
could you check it again.
I am behind "websense firewall" and cannot check myself. but I noticed a misspelled word. in freewebtown.

sorry,
could you check it again, please?

J
Jane 2/20/2007

Hi,
you only need to select Obv for the ObvVb field, Rev for the RevTb field on the both "Edit as" settings and "View as" settings dialogs.

D
dunga 2/20/2007

Hi, Jane,

got it.
Ok, now I have another issue,
ASP jpeg is installed, but the images are stil huge.
how does it work?

J
Jane 2/21/2007

Please give me the URL where I can see the error.

You can post it here or send to [email=support@xlinesoft.com]support@xlinesoft.com[/email].

D
dunga 2/21/2007

hi, Jane, i have managed to upload the projest in question to the demoaccount

2 issues:

the trash can images disappeared.
2. the images are huge.
please chek it I have there 2 projects, the one in question is called "banknotes"
ObvTb and RevTb suppose to store thumbnails

Obverse and Reverse suppose to host original scans.
thank you
my demo account is under xeops@hotmail.com

D
dunga 2/21/2007

hi, Jane I have made some adjustments, and here is what I figured out,
ASP runner not always remembers the LAST settings that you have madfor example I have set the ObvTb and RevTb to be displayed as images and did not chrck the thumbnail option.

however, when I have clicked Finish(after clicking build of course) and choose YES to save, and then reopened these checkmarks were checked!!!

also, right now you have in my demo account the project called "banknotes"
it works, to say fine, with 2 exception.

  1. I can only see the big pictures if I clicked View
  2. I cannot click on the pictures(of the thumbnails I created manually) to get to the big picture.
    strike that: problem is with the settings of our IT webserver personnel ]3. somehow ASPrunneraccepts my images on the demo account, but does not accept it on my localhost, or on my webserver.
    also Jane, please type "af" in the search box and try looking for aghanistan, you will get No records founds, even though the very first entry is an afghanistan

D
dunga 2/22/2007

we are almost there:)
let's make it simple:
1. to be able to store images(thumbnails and larger versions) on the webserver
access mdb fileds


BanknoteID -- primary key- autonumber

PictureSmall -- small thumbnail

PictureLarge -- larger picture
questions:

  1. MUST I add the following fields ???
    fileNamePictureSmall -- set it to TEXT

    fileNamePictureLarge -- set it to TEXT
    2. in the step 6 of 12, "choose fields"

    I do not want the
    fileNamePictureSmall -- set it to TEXT

    fileNamePictureLarge -- set it to TEXT

    PictureLarge -- larger picture


to appear on the List page: so I uncheck them like this


3. on the List Page I double clicked the ObvTb field and choose Image with the following options.


same thing was done to the RevTb field.

D
dunga 2/22/2007

4. here where I get really CONFUSED. the ADD PAGE and the EDIT PAGE
----------------------------------------------------------------------------------------------


as you could see when I double clicked the ObvTb field, I got this options


and


additionally when I double clicked on the filenamePicturesmall or Large I choose and typed "files"

as the name of the directory to host images.
like this


I am getting now confliCting issues <img src='https://asprunner.com/forums/file.php?topicimage=1&fieldname=reply&id=15760&image=5&table=forumreplies' class='bbc_emoticon' alt=':)' />
which one to choose??? for the ObvTb nad Rev Tb on the List/add/view pages of the visual Editor?

Admin 2/22/2007

Dunga,
if you like to store images on the webserver delete OLE Object fields from the database and forget about them.
Everything will be clear after you do this.

D
dunga 2/22/2007

hi,

leave them as Text? or at all Delete the fields?

Admin 2/22/2007

Dunga,

if you like to store images on the webserver delete OLE Object fields from the database and forget about them.
Everything will be clear after you do this.

D
dunga 2/22/2007

ok, i have done what you have suggested.
I have also choosen these options:


--------------------------------------------------------------------------------------------------


I am havinga aproblem with my DEMO account, I tried to utilize the ASPJPEG but the images still are big.

any sugestions?

Admin 2/22/2007

Your setup is correct.
Currently we don't have ASPJpeg component installed on Demo Account.

D
dunga 2/23/2007

hi,

I guess we have to solve one problem now...
-------------------------------------------------------------
Request object error 'ASP 0104 : 80004005'
Operation not Allowed
/training/banknotes/output/include/commonfunctions.asp, line 2007

-------------------------------------------------------------------------------
that line reads:
postData = Request.BinaryRead(Request.TotalBytes)
----------------------------------------------------------------
how replicate this problem.
as you can see 1 have 4 fields each one of them correctly storing(thank you for your help) images, BUT only 3 at the time.
what happens is as folows:

  1. if I add just 2 small images (7 kb in size) and one 115kb

    the ASP runned project works just fine.
  2. if I add 2 small images (7kb in size) and 2 115 kb ones : then I get error listed above.
    -----------------------------------------------------------------
    I have made a little research:
    IIS6.0 prevent the upload of files more than +200Kb. So you need to make some changes in the default IIS settings first.
    Background

    For IIS6.0 users, the AspMaxRequestEntityAllowed property specifies the maximum number of bytes allowed in the entity body of an ASP request. If a Content-Length header is present and specifies an amount of data greater than the value of AspMaxRequestEntityAllowed, IIS returns a 403 error response.
    This property is related in function to MaxRequestEntityAllowed, but is specific to ASP request. Whereas you might set the MaxRequestEntityAllowed property to 1 MB at the general World Wide Web Publishing Service (WWW Service) level, you may choose to set AspMaxRequestEntityAllowed to a lower value, if you know that your specific ASP applications handle a smaller amount of data.
    Solution

    Open your metabase.XML which is located in c:\Windows\System32\Inetsrv find the line "AspMaxRequestEntityAllowed" and change it to "1073741824″. This is 1GB - of course you can enter another value to suite your needs.
    NOTE: Before you edit the file, be sure to stop the IIS service first or else you won't be able to save the file.
    also
    For not to have the server restart, you would need to "Enable Direct Metabase Edit" in your IIS settings. To enable this follow these steps...
  3. Open IIS Manager
  4. Right click on your local computer
  5. In the Internet Information Service windows the very first checkbox is "Enable Direct Metabase Edit".
    -------------------------------------------------------------
    As you can see the process is lengthy, and requires a connection witha webmaster, and since most of us are mostly using free internet hosts this is not a solution.
    Is there a way to help us?
    thank you
    Ps. right now the only way around this issue without bugging anyone I found was, to:
  6. add 2 images(small ones plus 1 large)
  7. click save
  8. back to list
  9. edit
  10. add the last image...<img src='https://asprunner.com/forums/file.php?topicimage=1&fieldname=reply&id=15784&image=1&table=forumreplies' class='bbc_emoticon' alt=':(' />

    too long

    provided my database is 20.000 images big...

D
dunga 2/23/2007

well I have to admit...<img src='https://asprunner.com/forums/file.php?topicimage=1&fieldname=reply&id=15786&image=1&table=forumreplies' class='bbc_emoticon' alt=':(' />
I am not using windows 2003 server, and thus only have IIs 5.1 installed on my local machine, therefore the option about Metabase Edit is not available to me( as to many users) and therefore I canno increase the chunk size...
so , my question/request still stands.
is there anyway to change the code of ASP so that I will not have to go around and around with regards to the KB of images issue..?
also there is a link how to this for IIS 6 on windows server 2003 only <img src='https://asprunner.com/forums/file.php?topicimage=1&fieldname=reply&id=15786&image=2&table=forumreplies' class='bbc_emoticon' alt=':(' />
http://www.banmanpro.com/support2/File_Upload_limits.asp

D
dunga 2/25/2007

Excellent!!!.

the setup I explained to you just above WORKED!!!!

I have installed windows 2003 server, enabled ASP of course, enabled metadata files.
now I can (using the setup of ASPRUNNER) use all images at once.
Solution

Open your metabase.XMLwhich is located in c:\Windows\System32\Inetsrvfind the line"AspMaxRequestEntityAllowed" and change it to "1073741824″(Ihave changed it to 2073741824 . This is 1GB(in mine 2gb) - of course you can enter another value to suite your needs.
NOTE: Before you edit the file, be sure to stop the IIS service first or else you won't be able to save the file.

D
dunga 2/26/2007

AspMaxRequestEntityAllowed is supported only in IIS 6

not in iss 5 or iis 5.x
therefore, I would like to ask our team of developers, since they are hosting the testing site on windows XP on IIs 5.1
How do you guys go around it?
according to the
http://www.iis-resources.com/modules/newbb...103&forum=3
and
http://msdn2.microsoft.com/en-us/library/ms525734.aspx
this is not possible, but I got conflicting reports that it is possible to go around the max upload size change feature in IIS 5.1

please let us know.

thank you

D
dunga 2/26/2007

I (!) have found a solution which works!!! <img src='https://asprunner.com/forums/file.php?topicimage=1&fieldname=reply&id=15841&image=1&table=forumreplies' class='bbc_emoticon' alt=':)' />
just tested on wndows xp sp 2, with iis 5.1
0. stop IIS

  1. At a command prompt, type the following command, and then press ENTER:

    cd C:\inetpub\adminscripts

    Note In this command to change folders, C: drive is a placeholder for the hard disk where IIS is installed.
  2. At a command prompt, type the following command, and then press ENTER:

    cscript adsutil.vbs set w3svc/ASPMaxRequestEntityAllowed size (instead of word size type 1073741824)

    so it will look like
    cscript adsutil.vbs set w3svc/ASPMaxRequestEntityAllowed 2073741824
    Note In this command, size is a placeholder for the largest file size upload that you want to allow. The maximum value is 1,073,741,824 bytes.
    you can actually change it to 2 mb as well it also works.

D
dunga 3/6/2007

interesting problem:
I have specified folder for the thumbnails
like thumbnails/
and folder for files
like files/
just to see if ASPrunner will created 2 different folders to store my thumbnails and the larger verisons.
what do you know?
not only it did not store the largers version, but also it autoatically created two additional fields in the DB!!!!

D
dunga 3/6/2007

apparently, your EDIT page visual editor does not SAVE anything other than files.

D
dunga 3/6/2007

also, a question, several of the fileds in database are using dependable dropdowns.
like if I select Continent, Africa, Asia comes out and then sunsequent countries in the region.

however, when I createan excel spread sheet and try to import text data all are being imported EXCEPT the dependable drop downs, is there a way to make access recognize name of the country?
forget this one: figure it out. <img src='https://asprunner.com/forums/file.php?topicimage=1&fieldname=reply&id=16054&image=1&table=forumreplies' class='bbc_emoticon' alt=':)' />
just concentrate on the not being able to save options for the file in the EDIT visual editor,please

D
dunga 3/9/2007

apparently <img src='https://asprunner.com/forums/file.php?topicimage=1&fieldname=reply&id=16128&image=1&table=forumreplies' class='bbc_emoticon' alt=':)' />

I am solving my own problems by myself ...
ok, the problem IS with VISUAL EDITOR.
description:
Let's say I have to choose a directory "thumnbnails" for thumbnails

and "large" for the bigger versions.
what actually happens is that when you are in the Visual EDITOR and you have changed the folder name from the default one "files" to your specific "thumbnails" you MUST click BUILD button, and then FINISH and confirm to save.
this will EXIT the program and ALSO SAVE the correct paths.
If you vave changed the "files" for "thumbnails" and then clicked NEXT= your changes are lost.
please address this issue in the next bug fix.

thank you.<img src='https://asprunner.com/forums/file.php?topicimage=1&fieldname=reply&id=16128&image=2&table=forumreplies' class='bbc_emoticon' alt=':)' />