0

how to get media object from file path

asked 2010-10-26 05:59:52 +0800

rohitwadke gravatar image rohitwadke
339 1 5

Hello everyone,

I have file path i want to get file from this path.
e.g. D:\example.doc
i want to convert this file to media object, please tell me solution to convert this to media object..

Thanks in Advance,
Rohit

delete flag offensive retag edit

3 Replies

Sort by ยป oldest newest

answered 2010-10-27 04:46:08 +0800

RyanWu gravatar image RyanWu
533 2
about.me/flyworld

try use

java.io.*

link publish delete flag offensive edit

answered 2011-03-08 07:11:58 +0800

rohitwadke gravatar image rohitwadke
339 1 5

Thanks RyanWu,

But how to get file through client machine.. if application is deployed on server.. If i give path c:/filename then it search on server not on client side..
please send me soultion

Thanks in advance
Rohit

link publish delete flag offensive edit

answered 2011-04-05 01:25:39 +0800

RyanWu gravatar image RyanWu
533 2
about.me/flyworld

you can put them under the context root

e.g. myProject/WEB-INF/medias/*

then you can access it easily :)

The ZK way is using application.getResource()

link publish delete flag offensive edit
Your reply
Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!

[hide preview]

Question tools

Follow

RSS

Stats

Asked: 2010-10-26 05:59:52 +0800

Seen: 699 times

Last updated: Apr 05 '11

Support Options
  • Email Support
  • Training
  • Consulting
  • Outsourcing
Learn More