|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Generate data entry and reporting .NET Web apps in minutes, straight from your database. Read our FREE whitepaper “Build Web 2.0 Applications Without Hand-Coding” Download now! |
|
#1
|
|||
|
|||
|
getContentType()
I have a jsp page that uploads a file and a number of text fields. What I want to do is get the type of file it is (eg .doc/.jpeg) and save this as a string in my database. Does anyone know how to do this?
|
|
#2
|
||||
|
||||
|
It seems difficult because the file comes up encoded as multipart, the easy ways could be:
- use filename: *.pdf -> x-application/pdf - use client side javascript/applet Wait, maybe this servlet http://java.isavvix.com/codeexchang...etail.jsp?id=15
__________________
My blog about OpenSource Databases PDF tutorials about OSS databases, DBMonster ... Please contribute to Open Source Development, fill bug reports!!! Developer Shed eSupport Commented my.ini/my.cnf (PLEASE ADD YOUR OWN CONFIG TRICK) An introduction to database normalization Natural or Surrogate key Custom ordering for your results Correlated and uncorrelated subqueries Don't turn your outer joins into inner joins |
|
#3
|
|||
|
|||
|
Anyone know how to do this in jsp? Please
![]() |
![]() |
| Viewing: Dev Shed Forums > Programming Languages > Java Help > getContentType() |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|