|
I'm really embarrassed that I forgot this. Thanks. On Tue, 21 Feb 2012 07:05:34 -0800, David Given <dg@cowlark.com> wrote:
Stuart P. Bentley wrote: [...]local file = io.open("corrupt-jpeg.jpg",'w')[...]Any ideas for how to fix?Open with 'wb' instead --- you've told it it's a text file, and it's doing Unix<->DOS line ending conversion.