News for hackers. Stuff that matters.
Re:MSPaint in JavaScript by notfed on Tuesday February 25, 2020 @07:06PM (#22418933)
It's JavaScript. It runs on the client side.
Re:MSPaint in JavaScript by TrinaryWorksToo on Tuesday February 25, 2020 @07:26PM (#22419077)
Couldn't you upload the file to a blob, keeping it client side?

Re: MarcellusDrum

Re:MSPaint in JavaScript by Aperocky on Tuesday February 25, 2020 @08:44PM (#22419531)
lol, so much so, I create games in javascript so I only need a static server.
Re:MSPaint in JavaScript by MarcellusDrum on Tuesday February 25, 2020 @07:25PM (#22419068)
The script do run on the client side, but it can't access images from your computer, so you will have to upload it first so it can access it from the server.
Re:MSPaint in JavaScript by zeta0x10 on Tuesday February 25, 2020 @07:45PM (#22419201)
Yeah, but you don't upload it - you just make it accessible to the browser. So you read it into memory, but you would do the same with a "native" program (despite the fact that a very large file might be read more intelligently if it doesn't fit into RAM).
Re:MSPaint in JavaScript by _def on Tuesday February 25, 2020 @07:36PM (#22419144)
It may be possible via the FileReader API