WARNING: This server is unstable and will be retired in the next days. If you want to keep this forum available, please request immediately a migration on the Nabble Support forum. Forums that don't receive any migration request will be deleted forever.

 « Return to Thread: Downloading file

Re: Re: Downloading file

by Michael Pedersen-2 :: Rate this Message:

| View in Thread

ritesh: you need to give us something here. For most people, most of the time, the info given so far would be enough to figure out the solution.

Why is this not working for you? What result are you expecting, and what result are you actually getting? What version of TurboGears are you using? What version of tg.devtools? Are you in a paster environment, or mod_wsgi? Are you working out of a virtualenv or a buildout, or are you working exclusively with the system installed Python and site-packages? Which operating system are you on? What version of it? Is there any sample code we can look at to see the problem, and maybe help you with?

Right now, all I can say for sure is that you're not getting the results you expect. Without some (ideally, all) of that information, I can't even begin to guess what the problem is, or how to fix it.

On Fri, Apr 27, 2012 at 12:44 AM, ritesh <riteshsahu13@...> wrote:
Hi Moritz,
Again it did not helped!!!!!!

On Apr 26, 4:05 pm, Moritz Schlarb <m...@...> wrote:
> Well, instead of returning the file from the database, you can use os.open() and return the file iterator (which would be more efficient than first reading the whole file to memory).
> You just need to get the correct path for the file, probably by using some __file__ or __package__ magic.
>
> Does that help you?

--
You received this message because you are subscribed to the Google Groups "TurboGears" group.
To post to this group, send email to turbogears@....
To unsubscribe from this group, send email to turbogears%2Bunsubscribe@....
For more options, visit this group at http://groups.google.com/group/turbogears?hl=en.




--
Michael J. Pedersen
My Online Resume: http://www.icelus.org/ -- Google+ http://plus.ly/pedersen
Google Talk: m.pedersen@... -- Twitter: pedersentg

--
You received this message because you are subscribed to the Google Groups "TurboGears" group.
To post to this group, send email to turbogears@....
To unsubscribe from this group, send email to turbogears+unsubscribe@....
For more options, visit this group at http://groups.google.com/group/turbogears?hl=en.

 « Return to Thread: Downloading file