<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=UTF-8" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Philippe Marschall escreveu:
<blockquote
 cite="mid:66666f210809241239i4e671cb5v1df4dc1248787bef@mail.gmail.com"
 type="cite">
  <pre wrap="">2008/9/20 agnaldo4j <a class="moz-txt-link-rfc2396E" href="mailto:agnaldo4j@gmail.com">&lt;agnaldo4j@gmail.com&gt;</a>:
  </pre>
  <blockquote type="cite">
    <pre wrap="">Julian Fitzell escreveu:

On Sat, Sep 20, 2008 at 3:25 PM, Philippe Marschall
<a class="moz-txt-link-rfc2396E" href="mailto:philippe.marschall@gmail.com">&lt;philippe.marschall@gmail.com&gt;</a> wrote:


2008/9/19 agnaldo4j <a class="moz-txt-link-rfc2396E" href="mailto:agnaldo4j@gmail.com">&lt;agnaldo4j@gmail.com&gt;</a>:


Sorry, my english is very limited.

I use seaside with squeak 3.9.
I have a desktop application developed in java, this desktop application
send a gzip stream to server(seaside) and receive from the server a gzip
stream.


This doesn't sound very Seaside specific. Seaside only works over
http(s), it's a web framework. It looks more like you need a generic
Squeak/Smalltalk server.


I'm not certain but is the question just about using GZIP content
compression for the HTTP stream?

Julian
_______________________________________________
seaside mailing list
<a class="moz-txt-link-abbreviated" href="mailto:seaside@lists.squeakfoundation.org">seaside@lists.squeakfoundation.org</a>
<a class="moz-txt-link-freetext" href="http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside">http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside</a>



Correct Julian, is this.
My request and response are in gzip mode, but in seside i don't undarstand
how todo this.
A example in Ruby on Rails:
class TesteController &lt; ApplicationController
  protect_from_forgery :except =&gt; [:teste]

  require 'zlib'

  def teste
    gz = Zlib::GzipReader.new(request.body)
    puts gz.read

    render :json =&gt; {:nome =&gt; "Agnaldo de Oliveira"}.to_json

    StringIO.open('', 'w') do |strio|
      gw = Zlib::GzipWriter.new(strio)
      gw.write(response.body)
      response.body = strio.string
      gw.close()
    end
  end
end
    </pre>
  </blockquote>
  <pre wrap=""><!---->
Sorry for not replying earlier. You can zip and unzip strings by
sending #zipped or #unzipped to them. To make that work in every case
you probably have to hack it into WAKom/Encoded or configure Apache
(see Julian's post).

Your post raises some other questions however, most importantly how
does the Java application interact with Seaside? E.g when and why does
it connect to Seaside? Why does the Java application use gzip? Is
there a way to turn it off in the Java application?

Cheers
Philippe
_______________________________________________
seaside mailing list
<a class="moz-txt-link-abbreviated" href="mailto:seaside@lists.squeakfoundation.org">seaside@lists.squeakfoundation.org</a>
<a class="moz-txt-link-freetext" href="http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside">http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside</a>

  </pre>
</blockquote>
Hello Philippe,<br>
<br>
The java application send a gzip stream to server for reduce the size
of json message.<br>
the message is large(4 mb), and the response is large to.<br>
With this i reduce time delay.<br>
<br>
You wrote:  "You can zip and unzip strings by sending #zipped or
#unzipped to them.", but i don't know how get this zipped stream by
request.<br>
<br>
Thank you.<br>
</body>
</html>