Return-Path: Delivered-To: apmail-jakarta-jcs-users-archive@www.apache.org Received: (qmail 14842 invoked from network); 26 Aug 2009 17:04:45 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 26 Aug 2009 17:04:45 -0000 Received: (qmail 32087 invoked by uid 500); 26 Aug 2009 17:04:45 -0000 Delivered-To: apmail-jakarta-jcs-users-archive@jakarta.apache.org Received: (qmail 32069 invoked by uid 500); 26 Aug 2009 17:04:45 -0000 Mailing-List: contact jcs-users-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "JCS Users List" Delivered-To: mailing list jcs-users@jakarta.apache.org Received: (qmail 32057 invoked by uid 99); 26 Aug 2009 17:04:45 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 26 Aug 2009 17:04:45 +0000 X-ASF-Spam-Status: No, hits=2.2 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of jeffpk@gmail.com designates 209.85.217.224 as permitted sender) Received: from [209.85.217.224] (HELO mail-gx0-f224.google.com) (209.85.217.224) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 26 Aug 2009 17:04:35 +0000 Received: by gxk24 with SMTP id 24so731580gxk.1 for ; Wed, 26 Aug 2009 10:04:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type; bh=TnIjKbk/R+PRJY75XIRZKV11KdvyxYLxC4HQkYLDhVQ=; b=THy6lZ8vpaHLh9DG3x3AV0la78cl+Q7FOpBU7fufXL9OB7siYXBw/IuHUIuAxqkl2g B/1q5oFEha11L7vTXyUFz/xv0u0OoZ6NQrzNdfrCBQSb+z5UyV55dXVgW9B4bwTKHcj+ nWAVP4PwkSurN1UV6GWzAhWujVwB6BzaSXu04= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=u2jFnVh+gV1e+VgxIDbsDyG64HpSi7j5knm0AJa4PBUBWGZuwO0hlgoTI/AWW97KDm 9nbHVHoNoXnfucTq7rMbG+ahrIlWnCYCqYecrAGdgznqDQLw0CAn/sszN+S5bhRKSAkx tmXIja9dbw8Atg8yqt9e/m/wCjz0OszajaOeg= MIME-Version: 1.0 Received: by 10.101.80.5 with SMTP id h5mr8146471anl.10.1251306254564; Wed, 26 Aug 2009 10:04:14 -0700 (PDT) In-Reply-To: References: <330f74e70908251806o7f82ee3cu7f87a259553dd888@mail.gmail.com> Date: Wed, 26 Aug 2009 13:04:14 -0400 Message-ID: <330f74e70908261004u45b409c8tc779f412964c2b8@mail.gmail.com> Subject: Re: Can i store and fetchr aw blocks of bytes? From: Jeffrey Kesselman To: JCS Users List Content-Type: multipart/alternative; boundary=001636ed6909ceff0c04720e70b6 X-Virus-Checked: Checked by ClamAV on apache.org --001636ed6909ceff0c04720e70b6 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Unfortunately I am dealing with another library that wants to fetch from URLs itself. I was hoping to wedge a "cjs://" protocol handler in but to do that id need raw byte access to JCS. Its okay though because I found a leverage point higher up in the other stack where I can take control of the actual loading process. On Wed, Aug 26, 2009 at 12:55 PM, Stuart Maclean wrote: > Hi Jeffrey, I am doing a similar thing to you. I get Image objects from > remote URLs, then convert to int[] and store the int[] in JCS. I really did > this since Image is not serializable. > > You could read all bytes from your handler until read returns -1, store all > into a ByteArrayOutputStream, then call toByteArray on that and had the > byte[] to JCS? > > Stuart > > > On Aug 25, 2009, at 6:06 PM, Jeffrey Kesselman wrote: > > Hi Guys, >> >> Im trying to mate JCS at the moment with another system that expects to >> access data as bytes vi a URL. As sun Im writing a jcs protocol handler. >> >> The problem is that, as alluded to above, a protocl handler expcts to hand >> back its data as a byte stream. >> >> Is there a way to push thinsg into and take thinsg otu of the JCS cache as >> blocks of bytes? >> -- >> ~~ Microsoft help desk says: reply hazy, ask again later. ~~ >> > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: jcs-users-unsubscribe@jakarta.apache.org > For additional commands, e-mail: jcs-users-help@jakarta.apache.org > > -- ~~ Microsoft help desk says: reply hazy, ask again later. ~~ --001636ed6909ceff0c04720e70b6--